Merge "Hide emergency setting from "Search settings"" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
70e2ed1b9d
@@ -66,5 +66,10 @@ public class EmergencyDashboardFragment extends DashboardFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||||
new BaseSearchIndexProvider(R.xml.emergency_settings);
|
new BaseSearchIndexProvider(R.xml.emergency_settings) {
|
||||||
|
@Override
|
||||||
|
protected boolean isPageSearchEnabled(Context context) {
|
||||||
|
return context.getResources().getBoolean(R.bool.config_show_emergency_settings);
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user