mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
UI improvement for group chats
This commit is contained in:
parent
eb95840a40
commit
f552560cdb
1 changed files with 5 additions and 0 deletions
|
@ -311,8 +311,13 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
|
|||
break;
|
||||
default:
|
||||
if (multiReceived) {
|
||||
final int shadowSize = 10;
|
||||
viewHolder.username.setVisibility(View.VISIBLE);
|
||||
viewHolder.username.setText(UIHelper.getColoredUsername(activity.xmppConnectionService, message));
|
||||
if (activity.xmppConnectionService.colored_muc_names()) {
|
||||
viewHolder.username.setShadowLayer(shadowSize, 0, 0, ContextCompat.getColor(activity, R.color.realwhite));
|
||||
viewHolder.username.setPadding(shadowSize / 2, shadowSize / 2, shadowSize / 2, shadowSize / 2);
|
||||
}
|
||||
}
|
||||
if (singleReceived) {
|
||||
viewHolder.username.setVisibility(View.GONE);
|
||||
|
|
Loading…
Add table
Reference in a new issue