Added sender's avatar also to incoming message notification
This commit is contained in:
@@ -1385,6 +1385,7 @@ class BaresipService: Service() {
|
|||||||
.setStyle(messagingStyle)
|
.setStyle(messagingStyle)
|
||||||
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
|
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
|
||||||
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
||||||
|
.addPerson(senderPerson)
|
||||||
|
|
||||||
// message inline reply
|
// message inline reply
|
||||||
val remoteInput = RemoteInput.Builder(KEY_TEXT_REPLY)
|
val remoteInput = RemoteInput.Builder(KEY_TEXT_REPLY)
|
||||||
@@ -1835,7 +1836,7 @@ class BaresipService: Service() {
|
|||||||
getString(R.string.is_calling)
|
getString(R.string.is_calling)
|
||||||
|
|
||||||
val nb = NotificationCompat.Builder(this, HIGH_CHANNEL_ID)
|
val nb = NotificationCompat.Builder(this, HIGH_CHANNEL_ID)
|
||||||
nb.setSmallIcon(R.drawable.ic_notification_b)
|
nb.setSmallIcon(R.drawable.ic_notification_call)
|
||||||
.setColor(ContextCompat.getColor(this, R.color.colorPrimary))
|
.setColor(ContextCompat.getColor(this, R.color.colorPrimary))
|
||||||
.setContentIntent(pi)
|
.setContentIntent(pi)
|
||||||
.setCategory(Notification.CATEGORY_CALL)
|
.setCategory(Notification.CATEGORY_CALL)
|
||||||
|
|||||||
Reference in New Issue
Block a user