This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #1464: Create round bitmap icon for large icon image passed in …
…from local resource or url (#1635) * Adds check for inline && Android version < Android N for forceMainActivityReload(true) in PushHandlerActivity.java * Revises check for inline && Android version < Android N for forceMainActivityReload(true) in PushHandlerActivity.java * Revises check for inline && Android version < Android N for forceMainActivityReload(true) in PushHandlerActivity.java * Revises check for inline && Android version < Android N for forceMainActivityReload(true) in PushHandlerActivity.java * Revises check for inline && Android version < Android N for forceMainActivityReload(true) in PushHandlerActivity.java * Adds check for inline && Android version < Android N for onCreate method in PushHandlerActivity.java. If true sets foreground to true allowing click action can be handled in the action callback * Document foreground default Android M and earlier * Adds getCircleBitmap method to GCMIntentService.java and shape option to extras for setting notification Large Icon to round * import PorterDuffXfermode and remove final from declarations in getCircleBitmap method * Imports remaining Classes required by getCircleBitmap and declares IMG_SHAPE constant * Imports PorterDuff class and fixes gcmLargeIconShape and gcmLargeIcon variable getString params * Switches round large image preference condition from a string comparison to a boolean check * updates ROUND_IMG const to ROUND_IMAGE * Add Log outputs to print out whether round or square icons are being used * Makes large icon round by default and eliminates option for square * Issue #1464: Create round bitmap icon for large icon image passed in from local resource or url
- Loading branch information
Showing
3 changed files
with
84 additions
and
3 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
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