Remove Backup and Reset duplicates from Settings search
Bug: 33701673 Test: make RunSettingsRoboTests Change-Id: I3539f9581939255d94ccf04134278414fbe9c72b
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