dont load header images in their full size

This commit is contained in:
Conny Duck 2018-08-24 23:07:54 +02:00
parent 4845a54821
commit a8bd468190
1 changed files with 2 additions and 0 deletions

View File

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