Introduce KeepActivitiesPreferenceController

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I9e15d285eee51164dd5c3a07c4f2069bf4d73383
This commit is contained in:
jeffreyhuang
2017-09-29 13:43:52 -07:00
parent d43f656ed5
commit 28620a136f
3 changed files with 217 additions and 1 deletions

View File

@@ -304,7 +304,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
// disable usb audio routing
// strict mode enabled
// profile gpu rendering
// don't keep activities
controllers.add(new KeepActivitiesPreferenceController(context));
// background process limit
// background check
// show all anrs