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

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

Merge "Set correct TAPL rotation expectation"

parents 5e14337f 743d1455
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.server.wm.flicker.launch
import android.platform.test.annotations.FlakyTest
import android.platform.test.annotations.Postsubmit
import android.platform.test.annotations.RequiresDevice
import android.view.Surface
import android.view.WindowInsets
import android.view.WindowManager
import androidx.test.uiautomator.By
@@ -74,6 +75,13 @@ open class OpenAppFromNotificationWarm(
                    .withFullScreenApp(testApp)
                    .waitForAndVerify()
                testApp.postNotification(wmHelper)

                if (testSpec.isTablet) {
                    tapl.setExpectedRotation(testSpec.startRotation)
                } else {
                    tapl.setExpectedRotation(Surface.ROTATION_0)
                }

                tapl.goHome()
                wmHelper.StateSyncBuilder()
                    .withHomeActivityVisible()