Fan Zhang
ddc6c646c0
Convert BatterySaverButton controller to Slice compatible.
...
- Update preference key to match the key defined in SettingsSlicesContract
- Model TwoStateButtonPreference similar to TwoStatePreference (add
setChecked, isChecked method)
- Remove TwoStateButtonPreferenceController entirely because all methods
are moved into Preference directly for better encapsulation.
- Make BatterySaverButtonPrefController direclty implement
TogglePreferenceController. It was not possible before because the
interface between TwoStateButtonPreferene is too different from
TwoStatePreference.
Bug: 80106671
Test: robotests
Change-Id: Ib72807dcf1b36e959e08df8d80538c3f9f79b76d
2018-05-22 20:22:26 -07:00
..
2018-05-16 16:45:47 +00:00
2018-05-09 18:14:32 +00:00
2018-05-16 19:56:33 +00:00
2018-05-16 16:10:21 -07:00
2018-05-22 11:18:15 -07:00
2018-05-22 04:44:15 +00:00
2018-05-11 11:45:02 -07:00
2018-05-21 17:23:41 +08:00
2018-05-14 21:18:38 -07:00
2018-04-20 12:52:29 -07:00
2018-04-20 12:52:29 -07:00
2018-05-18 23:40:22 -07:00
2018-05-16 00:21:51 +00:00
2018-05-22 11:06:42 -07:00
2018-04-20 12:52:29 -07:00
2018-04-24 15:12:31 +08:00
2018-05-09 10:03:40 -07:00
2018-05-22 20:22:26 -07:00
2018-05-22 11:06:42 -07:00
2018-03-29 10:54:54 -07:00
2018-05-09 18:14:32 +00:00
2018-04-20 12:52:29 -07:00
2018-03-04 03:50:08 -08:00
2018-04-27 03:32:04 +00:00
2018-05-22 11:06:42 -07:00
2018-04-30 17:24:58 -07:00
2018-05-22 11:06:42 -07:00
2018-05-14 12:09:15 +01:00
2018-04-20 12:52:29 -07:00
2018-05-17 12:56:44 -07:00
2018-05-16 11:24:32 -07:00
2018-05-22 11:06:42 -07:00
2018-05-18 12:27:08 -07:00
2018-05-14 18:15:29 +00:00
2018-05-15 17:17:21 +00:00
2018-04-20 12:52:29 -07:00
2018-04-20 12:52:29 -07:00
2018-05-22 11:06:42 -07:00
2018-04-20 12:52:29 -07:00
2018-03-21 12:37:34 -07:00
2018-04-02 17:09:10 -07:00
2018-04-20 12:52:29 -07:00
2018-04-24 15:12:31 +08:00
2018-03-04 03:50:08 -08:00
2018-05-22 20:22:26 -07:00
2018-05-22 06:59:49 -07:00
2018-03-04 03:50:08 -08:00
2018-03-30 15:58:14 -07:00
2018-03-04 03:50:08 -08:00
2018-04-19 14:42:00 -07:00
2018-03-15 11:24:25 -07:00
2018-03-30 14:29:50 -07:00
2018-05-01 21:55:56 +01:00
2018-04-18 18:04:13 -07:00
2018-03-04 03:50:08 -08:00
2018-03-04 03:50:08 -08:00
2018-04-20 12:52:29 -07:00
2018-04-05 10:20:26 -07:00
2018-03-04 03:50:08 -08:00
2018-04-20 12:52:29 -07:00
2018-03-04 03:50:08 -08:00
2018-04-20 12:52:29 -07:00
2018-05-09 14:05:15 +08:00
2018-03-30 20:44:20 -07:00