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 for using FLAG_IMMUTABLE when creating PendingIntent targeting S+ (version 31 and above) #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

uyaribrahim
Copy link

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