Merge "Add PrefController in XML support"
This commit is contained in:
committed by
Android (Google) Code Review
commit
84e8c795b1
@@ -82,7 +82,7 @@ public class SystemDashboardFragment extends DashboardFragment {
|
||||
|
||||
private static List<AbstractPreferenceController> buildPreferenceControllers(Context context) {
|
||||
final List<AbstractPreferenceController> controllers = new ArrayList<>();
|
||||
controllers.add(new SystemUpdatePreferenceController(context, UserManager.get(context)));
|
||||
controllers.add(new SystemUpdatePreferenceController(context));
|
||||
controllers.add(new AdditionalSystemUpdatePreferenceController(context));
|
||||
controllers.add(new BackupSettingsActivityPreferenceController(context));
|
||||
controllers.add(new GesturesSettingPreferenceController(context));
|
||||
@@ -124,10 +124,10 @@ public class SystemDashboardFragment extends DashboardFragment {
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
keys.add((new BackupSettingsActivityPreferenceController(context)
|
||||
.getPreferenceKey()));
|
||||
keys.add((new BackupSettingsActivityPreferenceController(
|
||||
context).getPreferenceKey()));
|
||||
keys.add(KEY_RESET);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user