~singpolyma/cheogram-android

80c0d168f10cb872a84552fd844cac6d0926a2cf — Stephen Paul Weber 14 days ago 0b377a8
Bold timestamp on attention messages
1 files changed, 8 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java
M src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java => src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +8 -0
@@ 1125,6 1125,14 @@ public class MessageAdapter extends ArrayAdapter<Message> {
            }
        }

        if (viewHolder.time != null) {
            if (message.isAttention()) {
                viewHolder.time.setTypeface(null, Typeface.BOLD);
            } else {
                viewHolder.time.setTypeface(null, Typeface.NORMAL);
            }
        }

        final var black = MaterialColors.getColor(view, com.google.android.material.R.attr.colorSecondaryContainer) == view.getContext().getColor(android.R.color.black);
        final boolean colorfulBackground = this.bubbleDesign.colorfulChatBubbles;
        final BubbleColor bubbleColor;