Remove Wallpaper duplicate from setting search
Bug: 33701673 Test: make -j40 RunSettingsRoboTests Change-Id: I520cbc74284d92ab05b733346ee1b3115ddd8e9f
This commit is contained in:
@@ -40,6 +40,7 @@ public class LegalSettings extends SettingsPreferenceFragment implements Indexab
|
||||
private static final String KEY_LICENSE = "license";
|
||||
private static final String KEY_COPYRIGHT = "copyright";
|
||||
private static final String KEY_WEBVIEW_LICENSE = "webview_license";
|
||||
private static final String KEY_WALLPAPER_ATTRIBUTIONS = "wallpaper_attributions";
|
||||
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
@@ -76,7 +77,7 @@ public class LegalSettings extends SettingsPreferenceFragment implements Indexab
|
||||
|
||||
@Override
|
||||
public List<String> getNonIndexableKeys(Context context) {
|
||||
final List<String> keys = new ArrayList<String>();
|
||||
final List<String> keys = super.getNonIndexableKeys(context);
|
||||
if (!checkIntentAction(context, "android.settings.TERMS")) {
|
||||
keys.add(KEY_TERMS);
|
||||
}
|
||||
@@ -89,6 +90,7 @@ public class LegalSettings extends SettingsPreferenceFragment implements Indexab
|
||||
if (!checkIntentAction(context, "android.settings.WEBVIEW_LICENSE")) {
|
||||
keys.add(KEY_WEBVIEW_LICENSE);
|
||||
}
|
||||
keys.add(KEY_WALLPAPER_ATTRIBUTIONS);
|
||||
return keys;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user