summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-30 05:30:35 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-30 05:30:35 +0000
commit05e3ca270db83a83988fbbd26ae4c9e02bfbf207 (patch)
tree27066f01890118264bb89538e6dda05aa7cfbc33
parentc87bbeea6bc6c693af9bf8648cdd6f777c9a46e6 (diff)
parent8d0d38b678e41d7e94f308585b59cbdc91f57878 (diff)
downloadLauncher3-android-security-10.0.0_r75.tar.gz
Change-Id: Ide266064e6737c9f9ff690bfca66a550dea2b77d
-rw-r--r--src/com/android/launcher3/model/FirstScreenBroadcast.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/launcher3/model/FirstScreenBroadcast.java b/src/com/android/launcher3/model/FirstScreenBroadcast.java
index 1149b553f6..4d017bd4e8 100644
--- a/src/com/android/launcher3/model/FirstScreenBroadcast.java
+++ b/src/com/android/launcher3/model/FirstScreenBroadcast.java
@@ -15,6 +15,9 @@
*/
package com.android.launcher3.model;
+import static android.app.PendingIntent.FLAG_IMMUTABLE;
+import static android.app.PendingIntent.FLAG_ONE_SHOT;
+
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
@@ -140,7 +143,7 @@ public class FirstScreenBroadcast {
.putStringArrayListExtra(HOTSEAT_ITEM_EXTRA, new ArrayList<>(hotseatItems))
.putStringArrayListExtra(WIDGET_ITEM_EXTRA, new ArrayList<>(widgetItems))
.putExtra(VERIFICATION_TOKEN_EXTRA, PendingIntent.getActivity(context, 0,
- new Intent(), PendingIntent.FLAG_ONE_SHOT)));
+ new Intent(), FLAG_ONE_SHOT | FLAG_IMMUTABLE)));
}
private static String getPackageName(ItemInfo info) {