Introduce DisableAutoUpdatesPreferenceController

- Create new DisableAutomaticUpdatesPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Iae7ff3f7d2e296968c67e14c33089b3b42c4912a
This commit is contained in:
jeffreyhuang
2017-09-20 15:34:25 -07:00
parent 4466843b80
commit 6177d91efe
3 changed files with 213 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
controllers.add(new PictureColorModePreferenceController(context, lifecycle));
// webview implementation
controllers.add(new CoolColorTemperaturePreferenceController(context));
// automatic system updates
controllers.add(new DisableAutomaticUpdatesPreferenceController(context));
// system ui demo mode
// quick settings developer tiles
// usb debugging