Merge "Update Gesture navigation page to support search." into udc-qpr-dev

This commit is contained in:
Holly Jiuyu Sun
2023-08-23 17:39:22 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 1 deletions

View File

@@ -30,4 +30,6 @@ public class FeatureFlags {
public static final String CONTEXTUAL_HOME = "settings_contextual_home";
public static final String 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";
}

View File

@@ -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
if (!context.getResources().getBoolean(
com.android.internal.R.bool.config_swipe_up_gesture_setting_available)) {