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

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

Merge "Support device without desktop wallpaper" into main

parents dd936caa f31682d9
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -378,8 +378,15 @@ class ConnectedDisplayCujSmokeTests {
        verifyActivityState(browserApp, WINDOWING_MODE_FREEFORM, DEFAULT_DISPLAY, visible = true)
        verifyActivityState(clockApp, WINDOWING_MODE_FULLSCREEN, DEFAULT_DISPLAY, visible = false)

        // Open overview. If the device is not expected to have DesktopWallpaperActivity (i.e.,
        // `shouldShowHomeBehindDesktop` is true), we here use `tapl.workspace` because
        // `tapl.launchedAppState` expects any fullscreen app is visible and `tapl.workspace`
        // expects no fullscreen app is visible.
        val overview = if (desktopState.shouldShowHomeBehindDesktop) {
            tapl.workspace.openOverviewFromActionPlusTabKeyboardShortcut()
        } else tapl.launchedAppState.switchToOverview()

        // Verify the overview has both the fullscreen app and the desktop.
        val overview = tapl.launchedAppState.switchToOverview()
        overview.flingBackward()
        assertTrue("Can't find a desktop overview item", overview.currentTask.isDesktop)
        overview.flingForward()