-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
type: enhancementNew features or improvements to existing features.New features or improvements to existing features.
Description
Checklist
- I have used the search function to see if someone else has already submitted the same feature request.
- I will describe the problem with as much detail as possible.
- This issue only contains a request for one single feature, not multiple (related) features.
App version
v6.602
Problem you are trying to solve
There are no avatars showing on message notifications as Gmail app did, can we add this support feature?
Suggested solution
Add setLargeIcon on notification builder:
Lines 24 to 42 in 29d5220
| val notification = notificationHelper.createNotificationBuilder(account, ChannelType.MESSAGES) | |
| .setCategory(NotificationCompat.CATEGORY_EMAIL) | |
| .setGroup(baseNotificationData.groupKey) | |
| .setGroupSummary(isGroupSummary) | |
| .setSmallIcon(resourceProvider.iconNewMail) | |
| .setColor(baseNotificationData.color) | |
| .setWhen(singleNotificationData.timestamp) | |
| .setTicker(content.summary) | |
| .setContentTitle(content.sender) | |
| .setContentText(content.subject) | |
| .setSubText(baseNotificationData.accountName) | |
| .setBigText(content.preview) | |
| .setContentIntent(actionCreator.createViewMessagePendingIntent(content.messageReference)) | |
| .setDeleteIntent(actionCreator.createDismissMessagePendingIntent(content.messageReference)) | |
| .setDeviceActions(singleNotificationData) | |
| .setWearActions(singleNotificationData) | |
| .setAppearance(singleNotificationData.isSilent, baseNotificationData.appearance) | |
| .setLockScreenNotification(baseNotificationData, singleNotificationData.addLockScreenNotification) | |
| .build() |
Ref: https://developer.android.com/develop/ui/views/notifications/expanded#large-style
Screenshots / Drawings / Technical details
No response
nekohayoarmand-leguillou
Metadata
Metadata
Assignees
Labels
type: enhancementNew features or improvements to existing features.New features or improvements to existing features.