Remove Special App Access duplicate from Setting search

Bug: 33701673
Test: make RunSettingsRoboTests
Change-Id: I7f6a466c0551828c319c2da541fbeb0e428c62f8
This commit is contained in:
Matthew Fritze
2017-05-11 18:27:56 -07:00
parent 8fc602fed8
commit 76d9b53048
2 changed files with 64 additions and 0 deletions

View File

@@ -82,5 +82,13 @@ public class AppAndNotificationDashboardFragment 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 SpecialAppAccessPreferenceController(context))
.getPreferenceKey());
return keys;
}
};
}