kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix image banding that can sometimes show in high-res images.
rodzic
cf3dd70600
commit
11b1c9655c
|
@ -52,7 +52,7 @@ public class AttachmentRegionDecoder implements ImageRegionDecoder {
|
||||||
synchronized(this) {
|
synchronized(this) {
|
||||||
BitmapFactory.Options options = new BitmapFactory.Options();
|
BitmapFactory.Options options = new BitmapFactory.Options();
|
||||||
options.inSampleSize = sampleSize;
|
options.inSampleSize = sampleSize;
|
||||||
options.inPreferredConfig = Bitmap.Config.RGB_565;
|
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
|
||||||
|
|
||||||
Bitmap bitmap = bitmapRegionDecoder.decodeRegion(rect, options);
|
Bitmap bitmap = bitmapRegionDecoder.decodeRegion(rect, options);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue