Inverting notification shortcuts

This commit is contained in:
Luis Alfredo Figueroa Bracamontes
2020-07-29 15:06:44 -05:00
committed by GitHub
parent 4e9eee6bca
commit 7097af70a1

View File

@@ -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())
} }