Fix bug #15460001 "Cell broadcasts" setting search suggested in wifi only device though setting is not present

- implement a BaseSearchIndexProvider for WirelessSettings
- fix Context passed to the Index: now use an ApplicationContext
- also use the correct Context when dealing with Settings SearchIndexProvider
- also makes impossible a rogue BaseSearchIndexProvider to crash Settings
if not well behaving
- last, fix icon used for "NFC & more" search results

Change-Id: I8b5cc999fa57a9e1977ee57394801d54cf3dbabb
This commit is contained in:
Fabrice Di Meglio
2014-06-06 16:31:45 -07:00
parent b76de1d4fa
commit dba577f8f0
4 changed files with 131 additions and 16 deletions

View File

@@ -469,7 +469,7 @@ public class SettingsActivity extends Activity
mIsShowingDashboard = (initialFragmentName == null);
if (mIsShowingDashboard) {
Index.getInstance(this).update();
Index.getInstance(getApplicationContext()).update();
}
if (savedState != null) {