show box instead of white shine, if using colored nick names

fixes #514
This commit is contained in:
Christian Schneppe 2021-02-04 20:36:53 +01:00
parent dd1e9b2b20
commit 3e82c847a7

View file

@ -299,8 +299,8 @@ public class MessageAdapter extends ArrayAdapter<Message> {
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);
viewHolder.username.setPadding(4, 2, 4, 2);
viewHolder.username.setBackground(ContextCompat.getDrawable(activity, R.drawable.duration_background));
}
}
if (singleReceived) {