This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
Android 12: Explicitly set mutable or immutable flag on PendingIntent instances #10641
Labels
Android 12
New functionality or breaking behaviour when targeting Android 12
https://developer.android.com/about/versions/12/behavior-changes-12
Lint is complaining about all our
PendingIntent
objects. To continue with the Gradle / Android Plugin update I will disable this specific lint check. However we need to go through thePendingIntent
objects and decide whether they should be mutable or immutable (mostly probably immutable). To make things worse:FLAG_IMMUTABLE
is only available on API 23+. If you mirror the value (since it's just an int) then Android Studio complains that this is not aPendingIntent.*
flag you are using. Argh.┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: