Fix search indexing for encryption_and_credential page
- Rewrite search index provider to include all possible keys through getXmlResourcesToIndex() - Add isPageSearchEnabled() to disable all keys if user is not admin - Add getNonIndexableKeys to suppress unrelated keys based on current device state Change-Id: I2c6943483789bf4c9f3931d344cf279fec0edaee Fix: 37650170 Test: robotests
This commit is contained in:
@@ -171,8 +171,7 @@ public final class SearchIndexableResources {
|
||||
addIndex(LocationSettings.class, R.xml.location_settings, R.drawable.ic_settings_location);
|
||||
addIndex(ScanningSettings.class, R.xml.location_scanning, R.drawable.ic_settings_location);
|
||||
addIndex(SecuritySettings.class, NO_DATA_RES_ID, R.drawable.ic_settings_security);
|
||||
addIndex(EncryptionAndCredential.class, R.xml.encryption_and_credential,
|
||||
R.drawable.ic_settings_security);
|
||||
addIndex(EncryptionAndCredential.class, NO_DATA_RES_ID, R.drawable.ic_settings_security);
|
||||
addIndex(ScreenPinningSettings.class, NO_DATA_RES_ID, R.drawable.ic_settings_security);
|
||||
addIndex(UserAndAccountDashboardFragment.class, NO_DATA_RES_ID,
|
||||
R.drawable.ic_settings_accounts);
|
||||
|
Reference in New Issue
Block a user