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

Commit 261d817a authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Revert "Recycling already running activities"

This reverts commit 0bc32dcc.

Reason for revert: Tests are broken, perhaps caused by this one

Change-Id: Ie409f04931a27bd6da616c1e52e279eb07479631
parent 0bc32dcc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -48,10 +48,8 @@ public class StartLauncherViaGestureTests extends AbstractQuickStepTest {
        // b/143488140
        mLauncher.pressHome();
        // Start an activity where the gestures start.
        if (mLauncher.getRecentTasks().isEmpty()) {
        startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
    }
    }

    private void runTest(String... eventSequence) {
        final RaceConditionReproducer eventProcessor = new RaceConditionReproducer(eventSequence);
+8 −10
Original line number Diff line number Diff line
@@ -69,17 +69,15 @@ public class TaplTestsQuickstep extends AbstractQuickStepTest {
    }

    private void startTestApps() throws Exception {
        if (mLauncher.getRecentTasks().size() < 3) {
        startAppFast(getAppPackageName());
        startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
        startTestActivity(2);

        executeOnLauncher(launcher -> assertTrue(
                    "Launcher activity is the top activity; expecting another activity to be the "
                            + "top one",
                "Launcher activity is the top activity; expecting another activity to be the top "
                        + "one",
                isInBackground(launcher)));
    }
    }

    @Test
    @NavigationModeSwitch