Make TopLevelSettings un-searchable and direct result to relevant page.

Fixes: 149372187
Test: manual & robotest
Change-Id: I9daca03d1c11a262f8e3b55bb46aabbc035ece96
This commit is contained in:
Edgar Wang
2020-02-14 17:58:38 +08:00
parent fe83913c03
commit 77de405a5d
16 changed files with 36 additions and 9 deletions

View File

@@ -100,5 +100,12 @@ public class TopLevelSettings extends DashboardFragment implements
}
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
new BaseSearchIndexProvider(R.xml.top_level_settings);
new BaseSearchIndexProvider(R.xml.top_level_settings) {
@Override
protected boolean isPageSearchEnabled(Context context) {
// Never searchable, all entries in this page are already indexed elsewhere.
return false;
}
};
}