mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Merge "Revert "Make sure TAPL waits for Launcher activity to stop each time it stops"" into main
This commit is contained in:
@@ -599,9 +599,6 @@ public abstract class AbstractLauncherUiTest {
|
||||
Wait.atMost("Launcher activity didn't stop",
|
||||
() -> !launcherInstrumentation.isLauncherActivityStarted(),
|
||||
DEFAULT_ACTIVITY_TIMEOUT, launcherInstrumentation);
|
||||
|
||||
// Reset activity stop count.
|
||||
launcherInstrumentation.getAndResetActivityStopCount();
|
||||
}
|
||||
|
||||
public static ActivityInfo resolveSystemAppInfo(String category) {
|
||||
|
||||
@@ -44,15 +44,11 @@ public class TestIsolationRule implements TestRule {
|
||||
return new Statement() {
|
||||
@Override
|
||||
public void evaluate() throws Throwable {
|
||||
// Reset activity stop count.
|
||||
mLauncher.getAndResetActivityStopCount();
|
||||
|
||||
base.evaluate();
|
||||
|
||||
// Make sure that Launcher workspace looks correct.
|
||||
|
||||
UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()).pressHome();
|
||||
AbstractLauncherUiTest.checkDetectedLeaks(mLauncher, mRequireOneActiveActivity);
|
||||
mLauncher.assertNoUnexpectedStops();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user