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
This commit is contained in:
Hongwei Wang
2023-05-30 14:38:39 -07:00
parent 5c19dbf527
commit ccf5b832c8

View File

@@ -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;