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

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

Merge "SnoozeHelper: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED"

parents 665dd194 d822bfa1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -462,6 +462,8 @@ public class SnoozeHelper {
    }

    private PendingIntent createPendingIntent(String pkg, String key, int userId) {
        // TODO(b/174969959) Please replace FLAG_MUTABLE_UNAUDITED below
        // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
        return PendingIntent.getBroadcast(mContext,
                REQUEST_CODE_REPOST,
                new Intent(REPOST_ACTION)
@@ -469,7 +471,7 @@ public class SnoozeHelper {
                        .addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
                        .putExtra(EXTRA_KEY, key)
                        .putExtra(EXTRA_USER_ID, userId),
                PendingIntent.FLAG_UPDATE_CURRENT);
                PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED);
    }

    public void scheduleRepostsForPersistedNotifications(long currentTime) {