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

Commit b10b289e authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Make isInvisible optional

We don't always have an entry where the secondary activity is created and is invisible to could be visible as soon as it is created.

Bug: 24190005

Test: atest com.android.server.wm.flicker.activityembedding.open.OpenTrampolineActivityTest
Change-Id: I209921eae719f8583ada57c83586b0e2c91e4131
parent ff2c76b3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -104,7 +104,8 @@ class OpenTrampolineActivityTest(flicker: LegacyFlickerTest) : ActivityEmbedding
        flicker.assertWm {
            notContains(ActivityEmbeddingAppHelper.SECONDARY_ACTIVITY_COMPONENT)
                .then()
                .isAppWindowInvisible(ActivityEmbeddingAppHelper.SECONDARY_ACTIVITY_COMPONENT)
                .isAppWindowInvisible(ActivityEmbeddingAppHelper.SECONDARY_ACTIVITY_COMPONENT,
                    isOptional = true)
                .then()
                .isAppWindowVisible(ActivityEmbeddingAppHelper.SECONDARY_ACTIVITY_COMPONENT)
        }