Loading src/com/android/launcher3/LauncherPrefs.kt +7 −6 Original line number Diff line number Diff line Loading @@ -20,11 +20,12 @@ import android.content.Context.MODE_PRIVATE import android.content.SharedPreferences import android.content.SharedPreferences.OnSharedPreferenceChangeListener import android.util.Log import android.view.ViewConfiguration import androidx.annotation.VisibleForTesting import com.android.launcher3.BuildConfig.WIDGET_ON_FIRST_SCREEN import com.android.launcher3.LauncherFiles.DEVICE_PREFERENCES_KEY import com.android.launcher3.LauncherFiles.SHARED_PREFERENCES_KEY import com.android.launcher3.config.FeatureFlags.LPNH_SLOP_PERCENTAGE import com.android.launcher3.config.FeatureFlags.LPNH_TIMEOUT_MS import com.android.launcher3.model.DeviceGridState import com.android.launcher3.pm.InstallSessionHelper import com.android.launcher3.provider.RestoreDbTask Loading Loading @@ -311,15 +312,15 @@ class LauncherPrefs(private val encryptedContext: Context) { @JvmField val LONG_PRESS_NAV_HANDLE_SLOP_PERCENTAGE = nonRestorableItem( "pref_long_press_nav_handle_slop_multiplier", 100, "pref_long_press_nav_handle_slop_percentage", LPNH_SLOP_PERCENTAGE.get(), EncryptionType.MOVE_TO_DEVICE_PROTECTED ) @JvmField val LONG_PRESS_NAV_HANDLE_TIMEOUT_MS = nonRestorableItem( "pref_long_press_nav_handle_timeout_ms", ViewConfiguration.getLongPressTimeout(), LPNH_TIMEOUT_MS.get(), EncryptionType.MOVE_TO_DEVICE_PROTECTED ) @JvmField Loading src/com/android/launcher3/config/FeatureFlags.java +12 −1 Original line number Diff line number Diff line Loading @@ -21,8 +21,11 @@ import static com.android.launcher3.config.FeatureFlags.FlagState.DISABLED; import static com.android.launcher3.config.FeatureFlags.FlagState.ENABLED; import static com.android.launcher3.config.FeatureFlags.FlagState.TEAMFOOD; import static com.android.launcher3.uioverrides.flags.FlagsFactory.getDebugFlag; import static com.android.launcher3.uioverrides.flags.FlagsFactory.getIntFlag; import static com.android.launcher3.uioverrides.flags.FlagsFactory.getReleaseFlag; import android.view.ViewConfiguration; import androidx.annotation.VisibleForTesting; import com.android.launcher3.BuildConfig; Loading Loading @@ -113,9 +116,17 @@ public final class FeatureFlags { "Allow entering All Apps from Overview (e.g. long swipe up from app)"); public static final BooleanFlag CUSTOM_LPNH_THRESHOLDS = getDebugFlag(301680992, "CUSTOM_LPNH_THRESHOLDS", DISABLED, getReleaseFlag(301680992, "CUSTOM_LPNH_THRESHOLDS", DISABLED, "Add dev options to customize the LPNH trigger slop and milliseconds"); public static final IntFlag LPNH_SLOP_PERCENTAGE = getIntFlag(301680992, "LPNH_SLOP_PERCENTAGE", 100, "Controls touch slop percentage for lpnh"); public static final IntFlag LPNH_TIMEOUT_MS = getIntFlag(301680992, "LPNH_TIMEOUT_MS", ViewConfiguration.getLongPressTimeout(), "Controls lpnh timeout in milliseconds"); public static final BooleanFlag ENABLE_SHOW_KEYBOARD_OPTION_IN_ALL_APPS = getReleaseFlag( 270394468, "ENABLE_SHOW_KEYBOARD_OPTION_IN_ALL_APPS", ENABLED, "Enable option to show keyboard when going to all-apps"); Loading Loading
src/com/android/launcher3/LauncherPrefs.kt +7 −6 Original line number Diff line number Diff line Loading @@ -20,11 +20,12 @@ import android.content.Context.MODE_PRIVATE import android.content.SharedPreferences import android.content.SharedPreferences.OnSharedPreferenceChangeListener import android.util.Log import android.view.ViewConfiguration import androidx.annotation.VisibleForTesting import com.android.launcher3.BuildConfig.WIDGET_ON_FIRST_SCREEN import com.android.launcher3.LauncherFiles.DEVICE_PREFERENCES_KEY import com.android.launcher3.LauncherFiles.SHARED_PREFERENCES_KEY import com.android.launcher3.config.FeatureFlags.LPNH_SLOP_PERCENTAGE import com.android.launcher3.config.FeatureFlags.LPNH_TIMEOUT_MS import com.android.launcher3.model.DeviceGridState import com.android.launcher3.pm.InstallSessionHelper import com.android.launcher3.provider.RestoreDbTask Loading Loading @@ -311,15 +312,15 @@ class LauncherPrefs(private val encryptedContext: Context) { @JvmField val LONG_PRESS_NAV_HANDLE_SLOP_PERCENTAGE = nonRestorableItem( "pref_long_press_nav_handle_slop_multiplier", 100, "pref_long_press_nav_handle_slop_percentage", LPNH_SLOP_PERCENTAGE.get(), EncryptionType.MOVE_TO_DEVICE_PROTECTED ) @JvmField val LONG_PRESS_NAV_HANDLE_TIMEOUT_MS = nonRestorableItem( "pref_long_press_nav_handle_timeout_ms", ViewConfiguration.getLongPressTimeout(), LPNH_TIMEOUT_MS.get(), EncryptionType.MOVE_TO_DEVICE_PROTECTED ) @JvmField Loading
src/com/android/launcher3/config/FeatureFlags.java +12 −1 Original line number Diff line number Diff line Loading @@ -21,8 +21,11 @@ import static com.android.launcher3.config.FeatureFlags.FlagState.DISABLED; import static com.android.launcher3.config.FeatureFlags.FlagState.ENABLED; import static com.android.launcher3.config.FeatureFlags.FlagState.TEAMFOOD; import static com.android.launcher3.uioverrides.flags.FlagsFactory.getDebugFlag; import static com.android.launcher3.uioverrides.flags.FlagsFactory.getIntFlag; import static com.android.launcher3.uioverrides.flags.FlagsFactory.getReleaseFlag; import android.view.ViewConfiguration; import androidx.annotation.VisibleForTesting; import com.android.launcher3.BuildConfig; Loading Loading @@ -113,9 +116,17 @@ public final class FeatureFlags { "Allow entering All Apps from Overview (e.g. long swipe up from app)"); public static final BooleanFlag CUSTOM_LPNH_THRESHOLDS = getDebugFlag(301680992, "CUSTOM_LPNH_THRESHOLDS", DISABLED, getReleaseFlag(301680992, "CUSTOM_LPNH_THRESHOLDS", DISABLED, "Add dev options to customize the LPNH trigger slop and milliseconds"); public static final IntFlag LPNH_SLOP_PERCENTAGE = getIntFlag(301680992, "LPNH_SLOP_PERCENTAGE", 100, "Controls touch slop percentage for lpnh"); public static final IntFlag LPNH_TIMEOUT_MS = getIntFlag(301680992, "LPNH_TIMEOUT_MS", ViewConfiguration.getLongPressTimeout(), "Controls lpnh timeout in milliseconds"); public static final BooleanFlag ENABLE_SHOW_KEYBOARD_OPTION_IN_ALL_APPS = getReleaseFlag( 270394468, "ENABLE_SHOW_KEYBOARD_OPTION_IN_ALL_APPS", ENABLED, "Enable option to show keyboard when going to all-apps"); Loading