Remove accessibility duplicates in settings search
Bug: 33701673 Test: make RunSettingsRoboTests Change-Id: I46e79051d10c4cae851f8e76304e6cfe0a3f73d4 Merged-In: Idda6d2f98cb8d2cb91a9a4721b2ef84921f9056a
This commit is contained in:
@@ -50,6 +50,8 @@ import java.util.List;
|
||||
public class DisplaySettings extends DashboardFragment {
|
||||
private static final String TAG = "DisplaySettings";
|
||||
|
||||
public static final String KEY_DISPLAY_SIZE = "screen_zoom";
|
||||
|
||||
private static final String KEY_AUTO_BRIGHTNESS = "auto_brightness";
|
||||
private static final String KEY_SCREEN_TIMEOUT = "screen_timeout";
|
||||
|
||||
@@ -122,6 +124,13 @@ public class DisplaySettings extends DashboardFragment {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
List<String> keys = new ArrayList<>();
|
||||
keys.add(KEY_DISPLAY_SIZE);
|
||||
return keys;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PreferenceController> getPreferenceControllers(Context context) {
|
||||
return buildPreferenceControllers(context, null);
|
||||
|
Reference in New Issue
Block a user