From a8bd468190f8f63460a9b93f0da3b7e74f009ce8 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Fri, 24 Aug 2018 23:07:54 +0200 Subject: [PATCH] dont load header images in their full size --- app/src/main/java/com/keylesspalace/tusky/AccountActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/AccountActivity.kt b/app/src/main/java/com/keylesspalace/tusky/AccountActivity.kt index f7ff66b6..56bc8ae0 100644 --- a/app/src/main/java/com/keylesspalace/tusky/AccountActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/AccountActivity.kt @@ -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 ->