AccountActivity: animate banner if animateGifAvatars is enabled

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

@ -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…
Cancel
Save