Update color for notification actions, for android wear

This commit is contained in:
Moez Bhatti
2018-03-29 19:09:56 -04:00
parent 58ea5d0ecf
commit 732333ab99
8 changed files with 8 additions and 35 deletions
@@ -116,7 +116,7 @@ class NotificationManagerImpl @Inject constructor(
val readIntent = Intent(context, MarkReadReceiver::class.java).putExtra("threadId", threadId)
val readPI = PendingIntent.getBroadcast(context, threadId.toInt() + 30000, readIntent, PendingIntent.FLAG_UPDATE_CURRENT)
val readAction = NotificationCompat.Action(R.drawable.ic_done_black_24dp, context.getString(R.string.notification_read), readPI)
val readAction = NotificationCompat.Action(R.drawable.ic_check_white_24dp, context.getString(R.string.notification_read), readPI)
val notification = NotificationCompat.Builder(context, getChannelIdForNotification(threadId))
.setColor(colors.themeForConversation(threadId).blockingFirst())
@@ -191,7 +191,7 @@ class NotificationManagerImpl @Inject constructor(
.build()
return NotificationCompat.Action.Builder(
R.drawable.ic_reply_black_24dp,
R.drawable.ic_reply_white_24dp,
context.getString(R.string.notification_reply), replyPI)
.addRemoteInput(remoteInput)
.build()