Merge "Check for stopped state after launching AlwaysExpandActivity over the main activity in addition to paused" into main

This commit is contained in:
Pablo Gamito
2023-07-25 15:40:02 +00:00
committed by Android (Google) Code Review

View File

@@ -171,12 +171,15 @@ constructor(
wmHelper
.StateSyncBuilder()
.withActivityState(ALWAYS_EXPAND_ACTIVITY_COMPONENT, PlatformConsts.STATE_RESUMED)
.withActivityState(MAIN_ACTIVITY_COMPONENT, PlatformConsts.STATE_PAUSED)
.withActivityState(MAIN_ACTIVITY_COMPONENT, PlatformConsts.STATE_PAUSED,
PlatformConsts.STATE_STOPPED)
.waitForAndVerify()
}
private fun launchSecondaryActivityFromButton(
wmHelper: WindowManagerStateHelper, buttonName: String) {
wmHelper: WindowManagerStateHelper,
buttonName: String
) {
val launchButton =
uiDevice.wait(Until.findObject(By.res(getPackage(), buttonName)), FIND_TIMEOUT)
require(launchButton != null) {