Introduce SecondaryDisplaysPreferenceController

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ib1a7164b4e8fcf9ae8af96290d2baa33e25648f7
This commit is contained in:
jeffreyhuang
2017-10-12 10:50:54 -07:00
parent 379ba7ffff
commit 16b698d031
3 changed files with 250 additions and 1 deletions

View File

@@ -389,7 +389,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
controllers.add(new WindowAnimationScalePreferenceController(context));
// transition animation scale
controllers.add(new AnimatorDurationScalePreferenceController(context));
// simulate secondary displays
controllers.add(new SecondaryDisplayPreferenceController(context));
// smallest width
controllers.add(new ForceGpuRenderingPreferenceController(context));
controllers.add(new GpuViewUpdatesPreferenceController(context));