Introduce AnimatorDurationScalePreferenceCtrl

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I38820337184916f5d174814721ff61fd14ae9055
This commit is contained in:
jeffreyhuang
2017-10-10 15:10:41 -07:00
parent e2fc925bb3
commit 60023506e9
3 changed files with 257 additions and 1 deletions

View File

@@ -298,7 +298,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
controllers.add(new RtlLayoutPreferenceController(context));
// window animation scale
// transition animation scale
// animator duration scale
controllers.add(new AnimatorDurationScalePreferenceController(context));
// simulate secondary displays
// smallest width
controllers.add(new ForceGpuRenderingPreferenceController(context));