AccountActivity: animate banner if animateGifAvatars is enabled
This commit is contained in:
parent
01e4f13c93
commit
7c806733ee
|
@ -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 ->
|
||||
|
|
Loading…
Reference in New Issue