Introduce TransitionAnimationScalePreferenceCtrl

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I521561c21cc572f311d3c2699fc877eec693ca3a
This commit is contained in:
jeffreyhuang
2017-10-11 16:41:17 -07:00
parent 379ba7ffff
commit 93c41ba6b5
3 changed files with 260 additions and 1 deletions

View File

@@ -387,7 +387,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
controllers.add(new ShowLayoutBoundsPreferenceController(context));
controllers.add(new RtlLayoutPreferenceController(context));
controllers.add(new WindowAnimationScalePreferenceController(context));
// transition animation scale
controllers.add(new TransitionAnimationScalePreferenceController(context));
controllers.add(new AnimatorDurationScalePreferenceController(context));
// simulate secondary displays
// smallest width