OSDN Git Service

Remove the getSwitch() in SwitchWidgetController
authorjackqdyulei <jackqdyulei@google.com>
Thu, 30 Nov 2017 21:55:09 +0000 (13:55 -0800)
committerjackqdyulei <jackqdyulei@google.com>
Thu, 30 Nov 2017 21:58:57 +0000 (13:58 -0800)
commit9891b74533398e951e07ab24cbfdb58bdb12894f
tree523036b3d0cb29cfc440c8c257f2b1a1ee047065
parentd5fff3645a2cba06374c66a8c37815a20c670c2b
Remove the getSwitch() in SwitchWidgetController

IMHO we don't need to expose switch in SwitchWidgetController.
This controller already has enough API to control the switch.

Also rename mSwitchWidget to mSwitchController because it is not a
widget.

Bug: 69973752
Test: test still pass
Change-Id: I0ac247e34468a44109ab26019f1303c814e381f2
src/com/android/settings/bluetooth/BluetoothEnabler.java
src/com/android/settings/widget/MasterSwitchController.java
src/com/android/settings/widget/MasterSwitchPreference.java
src/com/android/settings/widget/SwitchBarController.java
src/com/android/settings/widget/SwitchWidgetController.java