Skip to content

Android 12 Compatibility - Add pending intent flag immutable#1411

Merged
jkasten2 merged 2 commits intomainfrom
compat/android12/add_pending_intent_flag_immutable
Aug 13, 2021
Merged

Android 12 Compatibility - Add pending intent flag immutable#1411
jkasten2 merged 2 commits intomainfrom
compat/android12/add_pending_intent_flag_immutable

Conversation

@jkasten2
Copy link
Copy Markdown
Member

@jkasten2 jkasten2 commented Aug 13, 2021

Details

Android 12 requires PendingIntents to set FLAG_IMMUTABLE
https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability

This is based on PR #1400, thanks to @AndreasBoehm

PendingIntent.FLAG_IMMUTABLE was interduce in Android API 23 (android 6.0) but confirmed on Android 4.4 the flag is safely ignored.


This change is Reviewable

* This is a required change for Android 12
* This is a required change for Android 12
@jkasten2 jkasten2 requested review from emawby and nan-li August 13, 2021 18:57
Copy link
Copy Markdown
Contributor

@emawby emawby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jkasten2 jkasten2 merged commit 034618a into main Aug 13, 2021
@jkasten2 jkasten2 deleted the compat/android12/add_pending_intent_flag_immutable branch August 13, 2021 20:00
@jkasten2 jkasten2 changed the title Android 12 Compatibility -add pending intent flag immutable Android 12 Compatibility - Add pending intent flag immutable Aug 13, 2021
@nan-li nan-li mentioned this pull request Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants