forked from e-mission/e-mission-data-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fix to the notification checks
To ensure that we don't fail if we have more permissions than requested e-mission/e-mission-docs#722 (comment) Without this fix, having sound enabled for app notifications would cause the checks to fail to fail, since the requested flags = 5 and the actual flags = 7 With this fix, we bitwise and the two values to remove the excess permissions. 7 (111) & 5 (101) = 101 = 5 = requested permissions
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters