mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-03 04:47:31 +01:00
use RGB_565 when decoding bounds at fullscreen media
This commit is contained in:
parent
bdf13a569e
commit
d14151dbe3
@ -19,7 +19,7 @@ class PicassoRegionDecoder : ImageRegionDecoder {
|
||||
synchronized(decoderLock) {
|
||||
val options = BitmapFactory.Options()
|
||||
options.inSampleSize = sampleSize
|
||||
options.inPreferredConfig = Bitmap.Config.ARGB_8888
|
||||
options.inPreferredConfig = Bitmap.Config.RGB_565
|
||||
val bitmap = decoder!!.decodeRegion(rect, options)
|
||||
return bitmap ?: throw RuntimeException("Region decoder returned null bitmap - image format may not be supported")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user