From 0aa0e744c8075389e58173f1f7f419da8ebd9a3b Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Fri, 16 Sep 2022 13:49:31 +0000 Subject: [PATCH] Switch PendingIntent to mutable Indeed, PackageManager needs to be able to change it to add the split apk install status and other infos into the intent. --- .../foundation/e/splitinstall/service/SplitInstallBinder.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/java/foundation/e/splitinstall/service/SplitInstallBinder.kt b/service/java/foundation/e/splitinstall/service/SplitInstallBinder.kt index ca77caa..9ddd910 100644 --- a/service/java/foundation/e/splitinstall/service/SplitInstallBinder.kt +++ b/service/java/foundation/e/splitinstall/service/SplitInstallBinder.kt @@ -52,8 +52,7 @@ class SplitInstallBinder( val callbackIntent = Intent(applicationContext, SplitInstallBroadcastReceiver::class.java) callbackIntent.action = SplitInstallBroadcastReceiver.MODULE_INSTALLED_INTENT_ACTION - - val flags = PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE + val flags = PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE val servicePendingIntent = PendingIntent.getBroadcast(applicationContext, sessionId, callbackIntent, flags) session.commit(servicePendingIntent.intentSender) -- GitLab