Introduce AllowAppsOnExternalPreferenceController

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ia8f1be0509f87ad42cf3dc640fa711cdec07698d
This commit is contained in:
jeffreyhuang
2017-09-29 16:27:56 -07:00
parent 5ae503b383
commit d07f4f80fd
3 changed files with 208 additions and 1 deletions

View File

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