Skip to content

Fix for using FLAG_IMMUTABLE when creating PendingIntent targeting S+ (version 31 and above)#10

Open
uyaribrahim wants to merge 1 commit into
tradle:masterfrom
uyaribrahim:fix/pendingintent-flag-issue
Open

Fix for using FLAG_IMMUTABLE when creating PendingIntent targeting S+ (version 31 and above)#10
uyaribrahim wants to merge 1 commit into
tradle:masterfrom
uyaribrahim:fix/pendingintent-flag-issue

Conversation

@uyaribrahim
Copy link
Copy Markdown

This pull request addresses an issue that arises when creating a PendingIntent targeting S+ (version 31 and above) without specifying either FLAG_IMMUTABLE or FLAG_MUTABLE. The change implements a resolution by utilizing PendingIntent.FLAG_IMMUTABLE for creating the PendingIntent, as recommended.

This modification enhances security and performance by employing the recommended FLAG_IMMUTABLE, providing a PendingIntent that is immutable and therefore safer for use. FLAG_MUTABLE is only necessary in specific cases, such as inline replies or bubbles.

This pull request aims to ensure compatibility with S+ version and above by embracing and applying the usage of FLAG_IMMUTABLE.

Changes:
Implemented PendingIntent creation using PendingIntent.FLAG_IMMUTABLE

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.

1 participant