mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
change the image max tile size depending on the image quality too
This commit is contained in:
@ -382,7 +382,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
isSubsamplingVisible = true
|
isSubsamplingVisible = true
|
||||||
|
|
||||||
view.subsampling_view.apply {
|
view.subsampling_view.apply {
|
||||||
setMaxTileSize(4096)
|
setMaxTileSize(if (context!!.config.showHighestQuality) Integer.MAX_VALUE else 4096)
|
||||||
setMinimumTileDpi(if (context!!.config.showHighestQuality) -1 else getMinTileDpi())
|
setMinimumTileDpi(if (context!!.config.showHighestQuality) -1 else getMinTileDpi())
|
||||||
background = ColorDrawable(Color.TRANSPARENT)
|
background = ColorDrawable(Color.TRANSPARENT)
|
||||||
setBitmapDecoderFactory { PicassoDecoder(path, Picasso.get(), rotation) }
|
setBitmapDecoderFactory { PicassoDecoder(path, Picasso.get(), rotation) }
|
||||||
|
Reference in New Issue
Block a user