Introduce ResizableActivityPreferenceController

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I401db1fe3a051ee70ab9afe2bf8c377b3b0b4e2f
This commit is contained in:
jeffreyhuang
2017-10-02 13:03:34 -07:00
parent 498e883d52
commit a19a24930b
3 changed files with 207 additions and 1 deletions

View File

@@ -311,7 +311,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
// show notification channel warnings
// inactive apps
controllers.add(new AllowAppsOnExternalPreferenceController(context));
// force activities to be resizable
controllers.add(new ResizableActivityPreferenceController(context));
// reset shortcutmanager rate-limiting
return controllers;
}