Fix image banding that can sometimes show in high-res images.

This commit is contained in:
Greyson Parrelli
2022-09-22 11:27:13 -04:00
committed by Cody Henthorne
parent cf3dd70600
commit 11b1c9655c

View File

@@ -52,7 +52,7 @@ public class AttachmentRegionDecoder implements ImageRegionDecoder {
synchronized(this) {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = sampleSize;
options.inPreferredConfig = Bitmap.Config.RGB_565;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
Bitmap bitmap = bitmapRegionDecoder.decodeRegion(rect, options);