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

Commit a7174a8a authored by Vania Desmonda's avatar Vania Desmonda
Browse files

Fix UnsafeIntentLaunchViolation when getting pending intent.

Fixes: 361366053
Flag: com.android.window.flags.enable_start_launch_transition_from_taskbar_bugfix
Test: manual test

Change-Id: Ie533cee9be6342b05ad710fc4c82cb45732ef2c3
parent 84df0d7b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -969,11 +969,13 @@ class DesktopTasksController(
            cascadeWindow(bounds, displayLayout, displayId)
        }
        val pendingIntent =
            PendingIntent.getActivity(
            PendingIntent.getActivityAsUser(
                context,
                /* requestCode= */ 0,
                intent,
                PendingIntent.FLAG_IMMUTABLE,
                /* options= */ null,
                UserHandle.of(userId),
            )
        val ops =
            ActivityOptions.fromBundle(options).apply {