dont load header images in their full size
This commit is contained in:
parent
4845a54821
commit
a8bd468190
|
@ -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…
Reference in New Issue