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

Commit ed801851 authored by Matt Pietal's avatar Matt Pietal
Browse files

Make pendingintent use immutable flag

It will be required for S+ that every PendingIntent be declared
mutable or immutable.

Fixes: 169792037
Test: manual
Change-Id: I4212c232abb061b06cbd5520ea548318f43549de
parent 58b20258
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -316,7 +316,8 @@ public class KeyguardSliceProvider extends SliceProvider implements
            }
            mDatePattern = getContext().getString(R.string.system_ui_aod_date_pattern);
            mPendingIntent = PendingIntent.getActivity(getContext(), 0,
                    new Intent(getContext(), KeyguardSliceProvider.class), 0);
                    new Intent(getContext(), KeyguardSliceProvider.class),
                    PendingIntent.FLAG_IMMUTABLE);
            try {
                //TODO(b/168778439): Remove this whole try catch. This is for debugging in dogfood.
                mMediaManager.addCallback(this);