SettingsIntelligence: Search: Skip showing a few packages
* Showing fonts, icon packs or the gestural navigation overlays don't
bring any value (you can't do much with them in settings) but can
lead to false conclusions (app exists -> feature must work)
Change-Id: I66c0bd2742291bace07e040c55bfb7924ee9f3a1
diff --git a/src/com/android/settings/intelligence/search/query/InstalledAppResultTask.java b/src/com/android/settings/intelligence/search/query/InstalledAppResultTask.java
index 6732765..e7e95a4 100644
--- a/src/com/android/settings/intelligence/search/query/InstalledAppResultTask.java
+++ b/src/com/android/settings/intelligence/search/query/InstalledAppResultTask.java
@@ -85,6 +85,13 @@
continue;
}
+ // Resource overlays (e.g. icon packs) add no useful info or settings, showing
+ // them clutters the results and can lead to assumptions (like gestures working
+ // on a device with hw keys)
+ if (info.isResourceOverlay()) {
+ continue;
+ }
+
final Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
.setData(