Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccf5b832 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

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
parent 5c19dbf5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;