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

Commit 8c12597f authored by Matthew Ng's avatar Matthew Ng Committed by android-build-merger
Browse files

All taps under max double tap timeout are quick taps

am: da3dd7c0

Change-Id: Ic8be4a866662662ed0226f81bf67282b26324871
parents 43c34ae0 da3dd7c0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -331,8 +331,7 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener
                RecentsActivityLaunchState launchState = config.getLaunchState();
                if (!launchState.launchedWithAltTab) {
                    // Has the user tapped quickly?
                    boolean isQuickTap = ViewConfiguration.getDoubleTapMinTime() < elapsedTime &&
                            elapsedTime < ViewConfiguration.getDoubleTapTimeout();
                    boolean isQuickTap = elapsedTime < ViewConfiguration.getDoubleTapTimeout();
                    if (Recents.getConfiguration().isGridEnabled) {
                        if (isQuickTap) {
                            EventBus.getDefault().post(new LaunchNextTaskRequestEvent());