Merge "Remove Backup and Reset duplicates from Settings search" into oc-dev am: 4bd0f411ce
am: af054e63e0
Change-Id: I35667061a61fd66e8ab8acafccffb53f00f15149
This commit is contained in:
@@ -37,6 +37,8 @@ public class SystemDashboardFragment extends DashboardFragment {
|
||||
|
||||
private static final String TAG = "SystemDashboardFrag";
|
||||
|
||||
private static final String KEY_RESET = "reset_dashboard";
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.SETTINGS_SYSTEM_CATEGORY;
|
||||
@@ -82,5 +84,14 @@ public class SystemDashboardFragment extends DashboardFragment {
|
||||
public List<PreferenceController> getPreferenceControllers(Context context) {
|
||||
return buildPreferenceControllers(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = super.getNonIndexableKeys(context);
|
||||
keys.add((new BackupSettingsActivityPreferenceController(context)
|
||||
.getPreferenceKey()));
|
||||
keys.add(KEY_RESET);
|
||||
return keys;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user