Fix avatar

This commit is contained in:
NekoInverter 2020-02-07 13:53:20 +08:00
parent ec2e7f4d56
commit 271b1e9c2d
1 changed files with 1 additions and 0 deletions

View File

@ -1334,6 +1334,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
BackupImageView imageView = new BackupImageView(context);
imageView.setRoundRadius(AndroidUtilities.dp(20));
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);
TextView textView = new TextView(context);
textView.setTextColor(Theme.getColor(Theme.key_actionBarDefaultSubmenuItem));