Reduce number of wallpaper results in search.

Previously we indexed the intent in display settings and every
app that handled ACTION_SET_WALLPAPER. Now, we only index an
app that handles ACTION_SET_WALLPAPER and is the listed package in
config_wallpaper_picker_package.

Change-Id: Ife81702017e3e8be4a754873d9c453fddf1cbd9e
Fixes: 62793068
Test: manual, search wallpaper and observe results
This commit is contained in:
Andrew Sapperstein
2017-06-28 17:16:57 -07:00
parent 2cbe278ad4
commit ebaab6aabd
4 changed files with 9 additions and 3 deletions

View File

@@ -127,6 +127,7 @@ public class DisplaySettings extends DashboardFragment {
public List<String> getNonIndexableKeys(Context context) {
List<String> keys = super.getNonIndexableKeys(context);
keys.add(KEY_DISPLAY_SIZE);
keys.add(WallpaperPreferenceController.KEY_WALLPAPER);
return keys;
}