Introduce ShortcutManagerThrottlingPreferenceCtrl

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I5409b40b4ed7d350af34498da9a3d7d79200f69b
This commit is contained in:
jeffreyhuang
2017-10-03 12:28:41 -07:00
parent 980e5b5869
commit 1f4ebfe41e
3 changed files with 176 additions and 1 deletions

View File

@@ -320,7 +320,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
// inactive apps
controllers.add(new AllowAppsOnExternalPreferenceController(context));
controllers.add(new ResizableActivityPreferenceController(context));
// reset shortcutmanager rate-limiting
controllers.add(new ShortcutManagerThrottlingPreferenceController(context));
return controllers;
}