OSDN Git Service

Call System.exit(0) in onDestroy
authorJack He <siyuanh@google.com>
Tue, 21 Mar 2017 23:50:56 +0000 (16:50 -0700)
committerJack He <siyuanh@google.com>
Wed, 22 Mar 2017 00:38:58 +0000 (17:38 -0700)
commit33e325b5c50001d9eb6c9d53cc0a258aa93c9dd1
tree6e35e5d6dafda52f8da86841348a01880c7b6a7b
parent96bd28a78fe83de6a14be6c52b0345ac5844555c
Call System.exit(0) in onDestroy

Call System.exit(0) in onDestroy() to make sure state is cleared in
the Bluetooth stack when Bluetooth is disabled

Bug: 27859763
Bug: 36487153
Test: Build, run unit tests, Bluetooth enable/disable
Change-Id: I34917ca3302b01c4da74b969da08860d6fbf8274
src/com/android/bluetooth/btservice/AdapterService.java
tests/src/com/android/bluetooth/btservice/PhonePolicyTest.java