AccountActivity: animate banner if animateGifAvatars is enabled

main
Alibek Omarov 5 years ago
parent ff5ec41e76
commit 569ca90147
  1. 7
      app/src/main/java/com/keylesspalace/tusky/AccountActivity.kt

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

Loading…
Cancel
Save