Add FLAG_IMMUTABLE to PendingIntent

PIs need a mutability flag on creation. See go/immutable-pendingintents for more context.

Change-Id: I7ac6a76fd501f36adddfd5bf85f0216a37fa9637
Test: TH
This commit is contained in:
Ashwini Oruganti 2021-01-22 22:17:21 +00:00
parent 9b9919d2be
commit 745272111c
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ public class TouchInteractionService extends Service implements PluginListener<O
getString(R.string.all_apps_label),
getString(R.string.all_apps_label),
PendingIntent.getActivity(this, SYSTEM_ACTION_ID_ALL_APPS, intent,
PendingIntent.FLAG_UPDATE_CURRENT));
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE));
am.registerSystemAction(allAppsAction, SYSTEM_ACTION_ID_ALL_APPS);
} else {
am.unregisterSystemAction(SYSTEM_ACTION_ID_ALL_APPS);