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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user