summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/FlickerTests/src/com/android/server/wm/flicker/launch/OpenAppFromNotificationWarm.kt10
1 files changed, 1 insertions, 9 deletions
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 2babf1c8e982..c5ead06e8223 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,7 +19,6 @@ 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
@@ -75,14 +74,7 @@ open class OpenAppFromNotificationWarm(
.withFullScreenApp(testApp)
.waitForAndVerify()
testApp.postNotification(wmHelper)
-
- if (testSpec.isTablet) {
- tapl.setExpectedRotation(testSpec.startRotation)
- } else {
- tapl.setExpectedRotation(Surface.ROTATION_0)
- }
-
- tapl.goHome()
+ device.pressHome()
wmHelper.StateSyncBuilder()
.withHomeActivityVisible()
.waitForAndVerify()