Merge pull request #64 from LuisAlfredo92/patch-1
Inverting notification shortcuts
This commit is contained in:
commit
e369195b9c
|
@ -627,12 +627,11 @@ fun Context.showReceivedMessageNotification(address: String, body: String, threa
|
||||||
.setCategory(Notification.CATEGORY_MESSAGE)
|
.setCategory(Notification.CATEGORY_MESSAGE)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setSound(soundUri, AudioManager.STREAM_NOTIFICATION)
|
.setSound(soundUri, AudioManager.STREAM_NOTIFICATION)
|
||||||
.addAction(R.drawable.ic_check_vector, getString(R.string.mark_as_read), markAsReadPendingIntent)
|
|
||||||
.setChannelId(NOTIFICATION_CHANNEL)
|
|
||||||
|
|
||||||
if (replyAction != null) {
|
if (replyAction != null) {
|
||||||
builder.addAction(replyAction)
|
builder.addAction(replyAction)
|
||||||
}
|
}
|
||||||
|
builder.addAction(R.drawable.ic_check_vector, getString(R.string.mark_as_read), markAsReadPendingIntent)
|
||||||
|
.setChannelId(NOTIFICATION_CHANNEL)
|
||||||
|
|
||||||
notificationManager.notify(threadID, builder.build())
|
notificationManager.notify(threadID, builder.build())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue