Merge "Remove Wallpaper duplicate from setting search" into oc-dev am: 564b965ccc
am: 5a151d23ab
Change-Id: If022852ca522b4d3f2fc8a01a9e96b966ab98cfa
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