-
Notifications
You must be signed in to change notification settings - Fork 40
feat(BigPictureCustomizer): Adds support for modification of extended layout… #145
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
Conversation
| * push notification. Call bigPictureStyle.bigLargeIcon(largeIconImage) if you want to set large | ||
| * icon on extended push notification. This bigPictureStyle will be set to push notification. Note | ||
| * that if you call bigPictureStyle= new Notification.BigPictureStyle() - there will be no support | ||
| * 2 lines of text and we will show yours extended layout in BigPicture style push notification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show your extended
| * @param bigPictureStyle - Notification.BigPictureStyle or null - BigPicture style for current | ||
| * push notification. Call bigPictureStyle.bigLargeIcon(largeIconImage) if you want to set large | ||
| * icon on extended push notification. This bigPictureStyle will be set to push notification. Note | ||
| * that if you call bigPictureStyle= new Notification.BigPictureStyle() - there will be no support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bigPictureStyle = new Notification.BigPictureStyle()
| * 2 lines of text and we will show yours extended layout in BigPicture style push notification. | ||
| */ | ||
| void customize(Notification.Builder builder, Bundle notificationPayload); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line ;)
| * @param notificationPayload Bundle notification payload. | ||
| * @param bigPictureStyle - Notification.BigPictureStyle or null - BigPicture style for current | ||
| * push notification. Call bigPictureStyle.bigLargeIcon(largeIconImage) if you want to set large | ||
| * icon on extended push notification. This bigPictureStyle will be set to push notification. Note |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expanded
|
|
||
| /** | ||
| * Calls setStyle for notificationBuilder and he tries modify notification layout for support 2 | ||
| * lines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it tries modify notification layout to support two
| message); | ||
| } else { | ||
| LeanplumPushService.notificationBuilderCustomizer.customize(notificationBuilder, message); | ||
| Notification.BigPictureStyle bigPictureStyle; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one line
|
test this please |
1 similar comment
|
test this please |
0c805f3 to
a8e5516
Compare
… layout in BigPictureStyle with 2 lines of text.
a8e5516 to
b0844dd
Compare
benmarten
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check comments
| } | ||
| LeanplumPushService.customizer = customizer; | ||
| setCustomizer(customizer, false); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I am wondering if we should deprecate it now after all?
It seems to me that this is the method that most clients would want to use now?
Should we also flip the default value to setCustomizer(customizer, false) because then clients would get benefit for 2 lines support, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, right
benmarten
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check comments
|
test this please |
726225f to
007db0e
Compare
benmarten
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks solid to me now! thx
feat(BigPictureCustomizer): Adds support for modification of extended layout in BigPictureStyle with 2 lines of text.