From 11b1c9655c47b2c873d12c1d853b66d4013afa07 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Thu, 22 Sep 2022 11:27:13 -0400 Subject: [PATCH] Fix image banding that can sometimes show in high-res images. --- .../components/subsampling/AttachmentRegionDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/subsampling/AttachmentRegionDecoder.java b/app/src/main/java/org/thoughtcrime/securesms/components/subsampling/AttachmentRegionDecoder.java index dc33c13a5..a4a940bd7 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/subsampling/AttachmentRegionDecoder.java +++ b/app/src/main/java/org/thoughtcrime/securesms/components/subsampling/AttachmentRegionDecoder.java @@ -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);