From ccf5b832c86d60f9ce402a4b6c734c2b52b18d51 Mon Sep 17 00:00:00 2001 From: Hongwei Wang Date: Tue, 30 May 2023 14:38:39 -0700 Subject: [PATCH] Use double tap timeout from ViewConfiguration Instead of having a hard-coded timeout value on our own, use whatever the framework provides. Bug: 284727687 Test: atest WMShellUnitTests:PipTouchStateTest Test: https://android-build.googleplex.com/builds/abtd/run/L16200000961005593 Change-Id: I287065dae7f1146d0b14abeca0913eda84ee7032 --- .../Shell/src/com/android/wm/shell/pip/phone/PipTouchState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipTouchState.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipTouchState.java index d7d69f27f9f8d..b611adb1a0091 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipTouchState.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PipTouchState.java @@ -37,7 +37,7 @@ public class PipTouchState { private static final boolean DEBUG = false; @VisibleForTesting - public static final long DOUBLE_TAP_TIMEOUT = 200; + public static final long DOUBLE_TAP_TIMEOUT = ViewConfiguration.getDoubleTapTimeout(); static final long HOVER_EXIT_TIMEOUT = 50; private final ShellExecutor mMainExecutor;