Revert "Recycling already running activities"
This reverts commit 0bc32dcce64b20459ff6f8eff960b217810d59d8.
Reason for revert: Tests are broken, perhaps caused by this one
Change-Id: Ie409f04931a27bd6da616c1e52e279eb07479631
diff --git a/quickstep/tests/src/com/android/quickstep/StartLauncherViaGestureTests.java b/quickstep/tests/src/com/android/quickstep/StartLauncherViaGestureTests.java
index 664958a..0c5b9ad 100644
--- a/quickstep/tests/src/com/android/quickstep/StartLauncherViaGestureTests.java
+++ b/quickstep/tests/src/com/android/quickstep/StartLauncherViaGestureTests.java
@@ -48,9 +48,7 @@
// b/143488140
mLauncher.pressHome();
// Start an activity where the gestures start.
- if (mLauncher.getRecentTasks().isEmpty()) {
- startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
- }
+ startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
}
private void runTest(String... eventSequence) {
diff --git a/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java b/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java
index ed25cc7..bf093fd 100644
--- a/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java
+++ b/quickstep/tests/src/com/android/quickstep/TaplTestsQuickstep.java
@@ -69,16 +69,14 @@
}
private void startTestApps() throws Exception {
- if (mLauncher.getRecentTasks().size() < 3) {
- startAppFast(getAppPackageName());
- startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
- startTestActivity(2);
+ 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",
- isInBackground(launcher)));
- }
+ executeOnLauncher(launcher -> assertTrue(
+ "Launcher activity is the top activity; expecting another activity to be the top "
+ + "one",
+ isInBackground(launcher)));
}
@Test