AccountActivity: animate banner if animateGifAvatars is enabled

This commit is contained in:
Alibek Omarov 2020-04-10 19:20:28 +03:00
parent 01e4f13c93
commit 7c806733ee
1 changed files with 8 additions and 1 deletions

View File

@ -407,11 +407,18 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidI
animateAvatar
)
Glide.with(this)
if(animateAvatar) {
Glide.with(this)
.load(account.header)
.centerCrop()
.into(accountHeaderImageView)
} else {
Glide.with(this)
.asBitmap()
.load(account.header)
.centerCrop()
.into(accountHeaderImageView)
}
accountAvatarImageView.setOnClickListener { avatarView ->