mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
set proper colors for unread-messages for edge case of theme switch
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
2b44a295a4
commit
dc78f615cb
@ -23,6 +23,7 @@
|
||||
package com.nextcloud.talk.adapters.items;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.BitmapDrawable;
|
||||
@ -146,7 +147,8 @@ public class ConversationItem extends AbstractFlexibleItem<ConversationItem.Conv
|
||||
holder.dialogUnreadBubble.setChipBackgroundColorResource(R.color.colorPrimary);
|
||||
holder.dialogUnreadBubble.setTextColor(Color.WHITE);
|
||||
} else {
|
||||
holder.dialogUnreadBubble.setChipBackgroundColorResource(R.color.conversation_unread_bubble);
|
||||
holder.dialogUnreadBubble.setChipBackgroundColor(
|
||||
ColorStateList.valueOf(ContextCompat.getColor(context, R.color.conversation_unread_bubble)));
|
||||
holder.dialogUnreadBubble.setTextColor(
|
||||
ContextCompat.getColor(context, R.color.conversation_unread_bubble_text));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user