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

Commit 0e275199 authored by Varun Shah's avatar Varun Shah
Browse files

Update PendingIntent with mutability flag.

Fixes: 174186839
Test: atest SyncManagerTest
Test: atest CtsSyncManagerTest
Change-Id: Ie5ca70c32fff5a1bf9e7ce5bcbab1d74d9f8efc8
parent a327041b
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -3838,12 +3838,10 @@ public class SyncManager {
            }
            }


            UserHandle user = new UserHandle(userId);
            UserHandle user = new UserHandle(userId);
            // TODO(b/174186839) Please replace FLAG_MUTABLE_UNAUDITED below
            // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
            final PendingIntent pendingIntent = PendingIntent
            final PendingIntent pendingIntent = PendingIntent
                    .getActivityAsUser(mContext, 0, clickIntent,
                    .getActivityAsUser(mContext, 0, clickIntent,
                            PendingIntent.FLAG_CANCEL_CURRENT
                            PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE,
                            | PendingIntent.FLAG_MUTABLE_UNAUDITED, null, user);
                            null, user);


            CharSequence tooManyDeletesDescFormat = mContext.getResources().getText(
            CharSequence tooManyDeletesDescFormat = mContext.getResources().getText(
                    R.string.contentServiceTooManyDeletesNotificationDesc);
                    R.string.contentServiceTooManyDeletesNotificationDesc);