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

Commit a4378ef2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Wait until the animation is complete before finishing the transition"

parents c58b8183 5461d5f4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import com.android.server.wm.flicker.helpers.reopenAppFromOverview
import com.android.server.wm.flicker.helpers.setRotation
import com.android.server.wm.flicker.startRotation
import com.android.server.wm.flicker.dsl.FlickerBuilder
import com.android.server.wm.traces.common.WindowManagerConditionsFactory
import org.junit.FixMethodOrder
import org.junit.Test
import org.junit.runner.RunWith
@@ -78,6 +79,11 @@ class OpenAppFromOverviewTest(testSpec: FlickerTestParameter) : OpenAppTransitio
            }
            transitions {
                device.reopenAppFromOverview(wmHelper)
                wmHelper.waitFor(
                        WindowManagerConditionsFactory.hasLayersAnimating().negate(),
                        WindowManagerConditionsFactory.isWMStateComplete(),
                        WindowManagerConditionsFactory.isHomeActivityVisible().negate()
                )
                wmHelper.waitForFullScreenApp(testApp.component)
            }
        }