Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 391e9642 authored by Ashwini Oruganti's avatar Ashwini Oruganti Committed by Android (Google) Code Review
Browse files

Merge "UiModeManagerService: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED"

parents f4a53f19 6a08dc61
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1737,9 +1737,12 @@ final class UiModeManagerService extends SystemService {
                                context.getString(R.string.car_mode_disable_notification_title))
                        .setContentText(
                                context.getString(R.string.car_mode_disable_notification_message))

                        .setContentIntent(
                                // TODO(b/173744200) Please replace FLAG_MUTABLE_UNAUDITED below
                                // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
                                PendingIntent.getActivityAsUser(context, 0,
                                        carModeOffIntent, 0,
                                        carModeOffIntent, PendingIntent.FLAG_MUTABLE_UNAUDITED,
                                        null, UserHandle.CURRENT));
                mNotificationManager.notifyAsUser(null,
                        SystemMessage.NOTE_CAR_MODE_DISABLE, n.build(), UserHandle.ALL);