Introduce BugReportPreferenceControllerV2

- Create new BugReportPreferenceControllerV2
 - Deprecated BugReportPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ic932bdd8c05f75af5a9390fb4372fb4bbc7d2340
This commit is contained in:
jeffreyhuang
2017-10-03 14:53:27 -07:00
parent 42f5c71ec3
commit 7f578fb1ef
5 changed files with 130 additions and 1 deletions

View File

@@ -245,7 +245,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
private static List<AbstractPreferenceController> buildPreferenceControllers(Context context,
Activity activity, Lifecycle lifecycle, DevelopmentSettingsDashboardFragment fragment) {
final List<AbstractPreferenceController> controllers = new ArrayList<>();
// take bug report
controllers.add(new BugReportPreferenceControllerV2(context));
controllers.add(new LocalBackupPasswordPreferenceController(context));
controllers.add(new StayAwakePreferenceController(context, lifecycle));
// hdcp checking