Merge "Make the pending intent immutable."

This commit is contained in:
Hongming Jin
2021-01-26 02:45:49 +00:00
committed by Android (Google) Code Review

View File

@@ -400,10 +400,8 @@ public class SystemActions extends SystemUI {
case INTENT_ACTION_ACCESSIBILITY_SHORTCUT: {
Intent intent = new Intent(intentAction);
intent.setPackage(context.getPackageName());
// TODO(b/173157883) Please replace FLAG_MUTABLE_UNAUDITED below
// with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
return PendingIntent.getBroadcast(context, 0, intent,
PendingIntent.FLAG_MUTABLE_UNAUDITED);
PendingIntent.FLAG_IMMUTABLE);
}
default:
break;