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

Commit ceedc95d authored by Vadim Tryshev's avatar Vadim Tryshev Committed by vadimt
Browse files

Slowing down dismiss gesture to reduce flakiness

Change-Id: I13a1d2053e841994df537896c4fe397f68fa4a65
parent cf50c1b0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import androidx.test.uiautomator.Until;
 * A recent task in the overview panel carousel.
 */
public final class OverviewTask {
    static final int FLING_SPEED = 3000;
    private final LauncherInstrumentation mLauncher;
    private final UiObject2 mTask;
    private final BaseOverview mOverview;
@@ -45,7 +46,7 @@ public final class OverviewTask {
    public void dismiss() {
        verifyActiveContainer();
        // Dismiss the task via flinging it up.
        mTask.fling(Direction.DOWN);
        mTask.fling(Direction.DOWN, (int) (FLING_SPEED * mLauncher.getDisplayDensity()));
        mLauncher.waitForIdle();
    }