Merge "Hides gesture nav settings page from search, when not available" into rvc-dev

This commit is contained in:
Mehdi Alizadeh
2020-05-08 17:29:56 +00:00
committed by Android (Google) Code Review

View File

@@ -145,5 +145,12 @@ public class GestureNavigationSettingsFragment extends DashboardFragment {
}
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
new BaseSearchIndexProvider(R.xml.gesture_navigation_settings);
new BaseSearchIndexProvider(R.xml.gesture_navigation_settings) {
@Override
protected boolean isPageSearchEnabled(Context context) {
return SystemNavigationPreferenceController.isGestureAvailable(context);
}
};
}