Fix the inverted logic of indexing injected entries
The if statement was misplaced while changing the coding style in
previous CL.
Bug: 132812768
Test: manual
Change-Id: I01a2494bf8103c806ec9b3cbd1ff9f8b8c01aebe
diff --git a/src/com/android/settings/search/SettingsSearchIndexablesProvider.java b/src/com/android/settings/search/SettingsSearchIndexablesProvider.java
index 76ece35..fab09fc 100644
--- a/src/com/android/settings/search/SettingsSearchIndexablesProvider.java
+++ b/src/com/android/settings/search/SettingsSearchIndexablesProvider.java
@@ -181,7 +181,7 @@
for (DashboardCategory category : dashboardFeatureProvider.getAllCategories()) {
for (Tile tile : category.getTiles()) {
final String packageName = tile.getPackageName();
- if (!context.getPackageName().equals(packageName)) {
+ if (context.getPackageName().equals(packageName)) {
continue;
}
final Object[] ref = new Object[INDEXABLES_RAW_COLUMNS.length];