diff --git a/tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppFromNotificationWarm.kt b/tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppFromNotificationWarm.kt index 77f28f60d2cc1..2babf1c8e9820 100644 --- a/tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppFromNotificationWarm.kt +++ b/tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppFromNotificationWarm.kt @@ -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()