From 1866f01ccb0d6869f6e4bceeef44e13683b275d3 Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Tue, 26 Jan 2021 15:13:54 -0500 Subject: [PATCH] Controls - Fix PendingIntent Add FLAG_IMMUTABLE! Fixes: 178428673 Test: manual, launch activity from controls Change-Id: Id81f859373ba96e8ec82f53085086d3a889849a3 --- .../src/com/android/systemui/controls/ui/DetailDialog.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt b/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt index e4f906486f8c2..020694d89fce6 100644 --- a/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt +++ b/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt @@ -73,7 +73,8 @@ class DetailDialog( activityView.startActivity( PendingIntent.getActivity(context, 0, launchIntent, - PendingIntent.FLAG_UPDATE_CURRENT), null, ActivityOptions.makeBasic()) + PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE), + null, ActivityOptions.makeBasic()) } override fun onTaskRemovalStarted(taskId: Int) {