Permalink
Browse files

Merge pull request #7328 from zackhow/covers-nocrop

Android: Don't crop covers
  • Loading branch information...
JosJuice committed Aug 14, 2018
2 parents 799b80f + 1f40efd commit 6a34210c2d1f8eab811eb21ecf7a7afc3e4f40e5
@@ -21,7 +21,6 @@ public static void loadGameBanner(ImageView imageView, GameFile gameFile)
Picasso.with(imageView.getContext())
.load(cover)
.fit()
.centerCrop()
.noFade()
.noPlaceholder()
.config(Bitmap.Config.ARGB_8888)
@@ -33,7 +32,6 @@ else if ((cover = new File(gameFile.getCoverPath())).exists())
Picasso.with(imageView.getContext())
.load(cover)
.fit()
.centerCrop()
.noFade()
.noPlaceholder()
.config(Bitmap.Config.ARGB_8888)
@@ -49,7 +47,6 @@ else if ((cover = new File(gameFile.getCoverPath())).exists())
Picasso.with(imageView.getContext())
.load(CoverHelper.buildGameTDBUrl(gameFile, CoverHelper.getRegion(gameFile)))
.fit()
.centerCrop()
.noFade()
.noPlaceholder()
.config(Bitmap.Config.ARGB_8888)
@@ -68,7 +65,6 @@ public void onError() // Second pass using US region
Picasso.with(imageView.getContext())
.load(CoverHelper.buildGameTDBUrl(gameFile, "US"))
.fit()
.centerCrop()
.noFade()
.noPlaceholder()
.config(Bitmap.Config.ARGB_8888)
@@ -87,7 +83,6 @@ public void onError() // Third and last pass using EN region
Picasso.with(imageView.getContext())
.load(CoverHelper.buildGameTDBUrl(gameFile, "EN"))
.fit()
.centerCrop()
.noFade()
.noPlaceholder()
.config(Bitmap.Config.ARGB_8888)

0 comments on commit 6a34210

Please sign in to comment.