Missing PendingIntent mutability flag
Missing PendingIntent
mutability flag
Apps targeting Android 12 and higher must specify either FLAG_IMMUTABLE
or FLAG_MUTABLE
when constructing a PendingIntent
.
FLAG_IMMUTABLE
is available since target SDK 23, and is almost always the best choice. See https://developer.android.com/guide/components/intents-filters#CreateImmutablePendingIntents for a list of common exceptions to this rule.
Issue id: UnspecifiedImmutableFlag
https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability
https://goo.gle/UnspecifiedImmutableFlag
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |
Last modified: 13 July 2023