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: I83478f5d399adaa63d41e868d23b1fab8e43e97d
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