Introduce BluetoothSnoopLogPreferenceController

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

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I1122ab1406abef429e499576c9d7bd3e9f8e537a
This commit is contained in:
jeffreyhuang
2017-09-14 14:02:39 -07:00
parent 4bfa56a7fd
commit 9679fde0bc
3 changed files with 200 additions and 0 deletions

View File

@@ -143,6 +143,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
Lifecycle lifecycle) {
final List<AbstractPreferenceController> controllers = new ArrayList<>();
controllers.add(new StayAwakePreferenceController(context, lifecycle));
controllers.add(new BluetoothSnoopLogPreferenceController(context));
return controllers;
}