Fix bug #16896118 SIM cards should ONLY appear in search results for devices with 2+ SIM slots

- add the proper SearchIndexProvider to SimSettings
- allow indexing only an only if showSimCardTile() is true
- add Utils.showSimCardTile()

Change-Id: I5df2284d32f91fa454e1edebf1139d00593138a0
This commit is contained in:
Fabrice Di Meglio
2014-08-08 12:27:57 -07:00
parent 1f4049edfe
commit 22a2a49b44
4 changed files with 38 additions and 14 deletions

View File

@@ -92,7 +92,7 @@ public final class SearchIndexableResources {
sResMap.put(SimSettings.class.getName(),
new SearchIndexableResource(
Ranking.getRankForClassName(SimSettings.class.getName()),
R.xml.sim_settings,
NO_DATA_RES_ID,
SimSettings.class.getName(),
R.drawable.ic_sim_sd));