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

Commit 7789ce9d authored by Ivan Tkachenko's avatar Ivan Tkachenko
Browse files

Set desktop wallpaper activity `avoid move to front`

* Launching Desktop wallpaper activity alongside other apps would reset their `mCurrentLaunchCanTurnScreenOn` flag.
* Launch options flag added to prevent desktop wallpaper activity stack from moving to front

More info: go/pending-intent-resets-turn-screen-on-flag

Bug: 343450217
Test: atest CtsWindowManagerDeviceActivity:ActivityVisibilityTests
Flag: ACONFIG com.android.window.flags.enable_desktop_windowing_wallpaper_activity DEVELOPMENT
Change-Id: I2044185bb259eab5606bd22f86858ad5e708d01b
parent 139f2e77
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -751,6 +751,7 @@ class DesktopTasksController(
        val intent = Intent(context, DesktopWallpaperActivity::class.java)
        val options =
            ActivityOptions.makeBasic().apply {
                setAvoidMoveToFront()
                isPendingIntentBackgroundActivityLaunchAllowedByPermission = true
                pendingIntentBackgroundActivityStartMode =
                    ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED