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

Commit b218785a authored by Ashwini Oruganti's avatar Ashwini Oruganti
Browse files

NotificationConversationInfoTest: Mark unaudited PendingIntents with FLAG_MUTABLE_UNAUDITED

These PIs need an explicit mutability flag. This temporay flag is being
used to mark these points in code and should be replaced ASAP.
See go/immutable-pendingintents for more context.

Bug: 160794467
Test: TH
Exempt-From-Owner-Approval: noop change
Change-Id: I158ef1c24a1a2a920e63d37d1ce0005f0bbaeac9
parent f2b1d840
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -213,8 +213,11 @@ public class NotificationConversationInfoTest extends SysuiTestCase {
                notification, UserHandle.CURRENT, null, 0);
        mEntry = new NotificationEntryBuilder().setSbn(mSbn).setShortcutInfo(mShortcutInfo).build();

        // TODO(b/175005650) Please replace FLAG_MUTABLE_UNAUDITED below
        // with either FLAG_IMMUTABLE (recommended) or FLAG_MUTABLE.
        PendingIntent bubbleIntent = PendingIntent.getActivity(mContext, 0,
                new Intent(mContext, BubblesTestActivity.class), 0);
                new Intent(mContext, BubblesTestActivity.class),
                PendingIntent.FLAG_MUTABLE_UNAUDITED);
        mBubbleSbn = new SbnBuilder(mSbn).setBubbleMetadata(
                new Notification.BubbleMetadata.Builder(bubbleIntent,
                        Icon.createWithResource(mContext, R.drawable.android)).build())