Merge "Hide emergency setting from "Search settings"" into tm-dev am: 70e2ed1b9d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17252529 Change-Id: Ie27bb45432f30b16e2045b87c89901eeda327b2a
This commit is contained in:
@@ -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