Introduce PictureColorModePreferenceController

- Create new PictureColorModePreferenceController
 - Create controller inside the DashboardFragment
 - Refactor ColorModePreference so isAvailable() no longer depends on
 ColorModePreference
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I8dff5b0d5ad1d7f043fc7ead540b2c0c960933e3
This commit is contained in:
jeffreyhuang
2017-09-18 14:45:49 -07:00
parent 31b04f526f
commit 6162fa5ef8
5 changed files with 273 additions and 18 deletions

View File

@@ -181,7 +181,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
controllers.add(new OemUnlockPreferenceController(context, activity, fragment));
// running services
// convert to file encryption
// picture color mode
controllers.add(new PictureColorModePreferenceController(context, lifecycle));
// webview implementation
// cool color temperature
// automatic system updates