Refine the DarkModeScheduleSelectorController

- move the initial part to the displayPreference.
- use indext compared instead of the direct string compared.

Bug: 141567787
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=ROBOTEST_FILTER=com.android.settings.display
Change-Id: I49ccc248bc1f5f9659f8543793ea502ac3e2ea6f
This commit is contained in:
Sunny Shao
2019-12-12 23:49:41 +08:00
parent 8e25a3a658
commit 7f086c0e81
3 changed files with 44 additions and 31 deletions

View File

@@ -102,9 +102,9 @@
<!-- Dark theme scheduling preferences [CHAR LIMIT=NONE] -->
<string-array name="dark_ui_scheduler_preference_titles">
<!-- 1: None -->
<!-- 0: None -->
<item>@string/dark_ui_auto_mode_never</item>
<!-- 2: Auto -->
<!-- 1: Auto -->
<item>@string/dark_ui_auto_mode_auto</item>
</string-array>