Permalink
Browse files

Android: Don't crop covers

  • Loading branch information...
zackhow committed Aug 13, 2018
1 parent 60f12e1 commit 1f40efda5db90e3cbfa0a1e6df4134d1707e6498
@@ -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 1f40efd

Please sign in to comment.