Skip to content

Commit

Permalink
continued tweaks to how Picasso is invoked for headshot images
Browse files Browse the repository at this point in the history
  • Loading branch information
slogan621 committed Mar 20, 2021
1 parent 3985c20 commit 2473e30
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2473e30

Please sign in to comment.