OSDN Git Service

Refine the DarkModeScheduleSelectorController
authorSunny Shao <sunnyshao@google.com>
Thu, 12 Dec 2019 15:49:41 +0000 (23:49 +0800)
committerSunny Shao <sunnyshao@google.com>
Tue, 17 Dec 2019 05:15:11 +0000 (13:15 +0800)
commit7f086c0e81e60a1d3321fb08cbf3e8ae4910b7f6
treec46d27c871f14fe41d521e6b1d5c6352eb59d17e
parent8e25a3a658064ce1cc58b2e85ad1a3551fbb7b69
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
res/values/arrays.xml
src/com/android/settings/display/darkmode/DarkModeScheduleSelectorController.java
tests/robotests/src/com/android/settings/display/darkmode/DarkModeScheduleSelectorControllerTest.java