From 2473e30f28a88a8e2ffded0bf506f7a952dd923e Mon Sep 17 00:00:00 2001 From: Syd Logan Date: Fri, 19 Mar 2021 20:20:49 -0700 Subject: [PATCH] continued tweaks to how Picasso is invoked for headshot images --- .../java/org/thousandsmiles/tscharts_lib/HeadshotImage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thousandsmiles/tscharts_lib/HeadshotImage.java b/app/src/main/java/org/thousandsmiles/tscharts_lib/HeadshotImage.java index f6e153e..5e6aa3c 100644 --- a/app/src/main/java/org/thousandsmiles/tscharts_lib/HeadshotImage.java +++ b/app/src/main/java/org/thousandsmiles/tscharts_lib/HeadshotImage.java @@ -115,8 +115,8 @@ public void run() { m_imageView.setBackground(null); if (m_imageType == "Headshot") { m_imageView.setScaleType(ImageView.ScaleType.FIT_CENTER); - m_imageView.setAdjustViewBounds(false); - Picasso.with(m_context).load(file).memoryPolicy(MemoryPolicy.NO_CACHE, MemoryPolicy.NO_STORE).into(m_imageView); + m_imageView.setAdjustViewBounds(true); + Picasso.with(m_context).load(file).memoryPolicy(MemoryPolicy.NO_CACHE, MemoryPolicy.NO_STORE).fit().into(m_imageView); } else { m_imageView.setScaleType(ImageView.ScaleType.FIT_CENTER); m_imageView.setAdjustViewBounds(true);