Introduce LocalBackupPasswordPreferenceController

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I86d0d2402e8092e9f03498254ae4e3bf7bb9bf3d
This commit is contained in:
jeffreyhuang
2017-10-02 14:26:56 -07:00
parent 498e883d52
commit c97c9d4615
3 changed files with 206 additions and 1 deletions

View File

@@ -238,7 +238,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
Activity activity, Lifecycle lifecycle, DevelopmentSettingsDashboardFragment fragment) {
final List<AbstractPreferenceController> controllers = new ArrayList<>();
// take bug report
// desktop backup password
controllers.add(new LocalBackupPasswordPreferenceController(context));
controllers.add(new StayAwakePreferenceController(context, lifecycle));
// hdcp checking
controllers.add(new BluetoothSnoopLogPreferenceController(context));