dont load header images in their full size

main
Conny Duck 6 years ago
parent b45dc5f873
commit deaf35646a
  1. 2
      app/src/main/java/com/keylesspalace/tusky/AccountActivity.kt

@ -315,6 +315,8 @@ class AccountActivity : BottomSheetActivity(), ActionButtonActivity, HasSupportF
.into(accountAvatarImageView) .into(accountAvatarImageView)
Picasso.with(this) Picasso.with(this)
.load(account.header) .load(account.header)
.fit() // prevents crash with large header images
.centerCrop()
.into(accountHeaderImageView) .into(accountHeaderImageView)
accountAvatarImageView.setOnClickListener { avatarView -> accountAvatarImageView.setOnClickListener { avatarView ->

Loading…
Cancel
Save