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

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

Merge "Remove wallpaper activity when display can't host tasks." into main

parents 7ea09487 b8985db9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -75,7 +75,9 @@ class DesktopWallpaperActivity : FragmentActivity() {
            }

            override fun onDisplayChanged(displayId: Int) {
                // No-op
                // If the display can no longer host tasks, remove this to ensure
                // core does not move it to the front of another display.
                if (displayId == initialDisplayId && !display.canHostTasks()) finish()
            }
        }