OSDN Git Service

Fixed a Setting Bluetooth Airplane mode bug.
authorPauloftheWest <paulofthewest@google.com>
Wed, 1 Oct 2014 13:14:58 +0000 (06:14 -0700)
committerPauloftheWest <paulofthewest@google.com>
Wed, 1 Oct 2014 15:23:40 +0000 (08:23 -0700)
commit797fc45ff65eccb6f967e93de913622c5225fb95
tree9a2bb5f04b577d83592627703b90740b6bb54fbe
parentf7b567081ef5f4daafdf0b229793323751e0d764
Fixed a Setting Bluetooth Airplane mode bug.

+ This patch moves the switch listeners from setup/teardown of the SwitchBar
to pause/resume of Bluetooth Settings.  This prevents Bluetooth from
receiving connect messages while Airplane mode is turning off Bluetooth
(which is what caused Bluetooth to re-enable.)

Bug: 17465951
Change-Id: I4d32fcf5bb3a2241ed03e2295c86390e15743954
src/com/android/settings/bluetooth/BluetoothEnabler.java