Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash with Android 12 (S, API 31). #43

Merged
merged 1 commit into from
Dec 7, 2021
Merged

Fix crash with Android 12 (S, API 31). #43

merged 1 commit into from
Dec 7, 2021

Conversation

shine5402
Copy link
Contributor

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
As app seems don't need to send data back in Notification Area, these required flag field are now all FLAG_IMMUTABLE.
Also dump up dependencies version as some of them violates this requirement too (Ehh..)

感想就是,谷歌,你为什么

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
As app seems don't need to send data back in Notification Area, these required flag field are now all FLAG_IMMUTABLE.
Also dump up depencies version as some of them violates this requirement too (Ehh..)
@HMBSbige HMBSbige added the Bug Issues marked with this label indicate unintended program behaviour that needs correction. label Dec 7, 2021
@HMBSbige HMBSbige merged commit 451f160 into HMBSbige:master Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues marked with this label indicate unintended program behaviour that needs correction.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants