1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-11 20:39:28 +01:00

Fix avatar

This commit is contained in:
NekoInverter 2020-02-07 13:53:20 +08:00
parent ec2e7f4d56
commit 271b1e9c2d

View File

@ -1334,6 +1334,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
BackupImageView imageView = new BackupImageView(context); BackupImageView imageView = new BackupImageView(context);
imageView.setRoundRadius(AndroidUtilities.dp(20)); imageView.setRoundRadius(AndroidUtilities.dp(20));
frameLayout.addView(imageView, LayoutHelper.createFrame(40, 40, (LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.TOP, 22, 5, 22, 0)); frameLayout.addView(imageView, LayoutHelper.createFrame(40, 40, (LocaleController.isRTL ? Gravity.RIGHT : Gravity.LEFT) | Gravity.TOP, 22, 5, 22, 0));
avatarDrawable.setInfo(currentChat);
imageView.setImage(ImageLocation.getForChat(currentChat, false), "50_50", avatarDrawable, currentChat); imageView.setImage(ImageLocation.getForChat(currentChat, false), "50_50", avatarDrawable, currentChat);
TextView textView = new TextView(context); TextView textView = new TextView(context);
textView.setTextColor(Theme.getColor(Theme.key_actionBarDefaultSubmenuItem)); textView.setTextColor(Theme.getColor(Theme.key_actionBarDefaultSubmenuItem));