Merge "Update Gesture navigation page to support search." into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ef6ac74a15
@@ -30,4 +30,6 @@ public class FeatureFlags {
|
|||||||
public static final String CONTEXTUAL_HOME = "settings_contextual_home";
|
public static final String CONTEXTUAL_HOME = "settings_contextual_home";
|
||||||
public static final String SETTINGS_SEARCH_ALWAYS_EXPAND =
|
public static final String SETTINGS_SEARCH_ALWAYS_EXPAND =
|
||||||
"settings_search_always_expand";
|
"settings_search_always_expand";
|
||||||
|
public static final String PRESS_HOLD_NAV_HANDLE_TO_SEARCH =
|
||||||
|
"settings_press_hold_nav_handle_to_search";
|
||||||
}
|
}
|
||||||
|
@@ -52,7 +52,8 @@ public class SystemNavigationPreferenceController extends BasePreferenceControll
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean isGestureAvailable(Context context) {
|
/** Returns {@code true} if gesture is available. */
|
||||||
|
public static boolean isGestureAvailable(Context context) {
|
||||||
// Skip if the swipe up settings are not available
|
// Skip if the swipe up settings are not available
|
||||||
if (!context.getResources().getBoolean(
|
if (!context.getResources().getBoolean(
|
||||||
com.android.internal.R.bool.config_swipe_up_gesture_setting_available)) {
|
com.android.internal.R.bool.config_swipe_up_gesture_setting_available)) {
|
||||||
|
Reference in New Issue
Block a user