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

Commit 9c51128e authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Revert "Reset the frozen recents list state when switching to bu..."

Revert submission 24683011-extend_recents_freeze_duration

Reason for revert: b/298544839

Reverted changes: /q/submissionid:24683011-extend_recents_freeze_duration

Change-Id: I7e881baf200981bddee39336fc3573dce0dc148f
parent 8bbfc2b6
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -26,10 +26,7 @@ import static com.android.systemui.shared.system.QuickStepContract.NAV_BAR_MODE_

import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Point;
import android.os.SystemClock;
import android.util.Log;
import android.view.MotionEvent;

import androidx.test.uiautomator.UiDevice;

@@ -118,18 +115,6 @@ public class NavigationModeSwitchRule implements TestRule {
                private void evaluateWithThreeButtons() throws Throwable {
                    if (setActiveOverlay(mLauncher, NAV_BAR_MODE_3BUTTON_OVERLAY,
                            LauncherInstrumentation.NavigationModel.THREE_BUTTON, description)) {
                        // After switching to three button, ensure that we interact with the screen
                        // within the app area to reset the frozen recents state (if a quickswitch
                        // was just performed), otherwise the list may be in the wrong order
                        // spatially when executing the next test
                        final Point center = new Point(mLauncher.getDevice().getDisplayWidth() / 2,
                                mLauncher.getDevice().getDisplayHeight() / 2);
                        final long clickTime = SystemClock.uptimeMillis();
                        mLauncher.sendPointer(clickTime, clickTime, MotionEvent.ACTION_DOWN, center,
                                LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER);
                        mLauncher.sendPointer(clickTime, clickTime, MotionEvent.ACTION_UP, center,
                                LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER);

                        base.evaluate();
                    }
                }