Merge "Hide Location Mode from search results if it's not available."

This commit is contained in:
TreeHugger Robot
2017-12-14 18:08:44 +00:00
committed by Android (Google) Code Review
2 changed files with 78 additions and 0 deletions

View File

@@ -94,6 +94,11 @@ public class LocationMode extends DashboardFragment {
return Arrays.asList(sir);
}
@Override
protected boolean isPageSearchEnabled(Context context) {
return context.getResources().getBoolean(R.bool.config_location_mode_available);
}
@Override
public List<AbstractPreferenceController> getPreferenceControllers(Context
context) {