From 81062369d3722919787cf8f48ded510d8b35e30e Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 30 Sep 2018 10:33:54 +0200 Subject: [PATCH] change the image max tile size depending on the image quality too --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index 19688c461..fa9f26286 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -382,7 +382,7 @@ class PhotoFragment : ViewPagerFragment() { isSubsamplingVisible = true view.subsampling_view.apply { - setMaxTileSize(4096) + setMaxTileSize(if (context!!.config.showHighestQuality) Integer.MAX_VALUE else 4096) setMinimumTileDpi(if (context!!.config.showHighestQuality) -1 else getMinTileDpi()) background = ColorDrawable(Color.TRANSPARENT) setBitmapDecoderFactory { PicassoDecoder(path, Picasso.get(), rotation) }