Commit Graph

3 Commits

Author SHA1 Message Date
Edgar Wang
bff4a440cc Relace BuildCompat.isAtLeastS to check Build.VERSION.SDK_INT
Fixes: 191227729
Test: robotest & manual
Change-Id: I4b865b7de33a6801783dd645213fef0cda8d4dd2
2021-06-21 12:52:06 +08:00
Stanley Wang
ab9937f5f6 Synchronize the states of MainSwitchBar and MainSwitchPreference.
MainSwitchPreference should synchronize the switch state of
MainSwitchBar.

Fix: 187391143
Test: robotest and see the UI
Change-Id: Ifa3d21f7ce3ba6bdcfa3c254b2aa1a7668618829
2021-05-20 06:51:18 +00:00
Stanley Wang
5728b5be2f Create a main switch preference widget.
Based on our ux spec, we create this widget to
let everyone can follow up our spec easily.

Bug: 175181773
Test: Run robotest and apply this widget in Settings and see the ui
Change-Id: I4ea5f38c44aacfeb2c8dbe4a7d31159712f95441
2020-12-24 17:35:08 +08:00