change the image max tile size depending on the image quality too

This commit is contained in:
tibbi 2018-09-30 10:33:54 +02:00
parent 7e15cf8d54
commit 81062369d3
1 changed files with 1 additions and 1 deletions

View File

@ -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) }