From 12d7a615de66e3bebd7fa887938ad88cb790573b Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 4 Mar 2022 10:29:51 +0100 Subject: [PATCH] Image config --- app/src/main/java/eu/faircode/email/AdapterImage.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/AdapterImage.java b/app/src/main/java/eu/faircode/email/AdapterImage.java index 4c525c13da..522b6f20c8 100644 --- a/app/src/main/java/eu/faircode/email/AdapterImage.java +++ b/app/src/main/java/eu/faircode/email/AdapterImage.java @@ -120,6 +120,8 @@ public class AdapterImage extends RecyclerView.Adapter if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (options.outColorSpace != null) args.putString("color", options.outColorSpace.getModel().name()); + if (options.outConfig != null) + args.putString("config", options.outConfig.name()); } } catch (Throwable ex) { Log.w(ex); @@ -163,6 +165,13 @@ public class AdapterImage extends RecyclerView.Adapter sb.append(color); } + String config = args.getString("config"); + if (config != null) { + if (sb.length() > 0) + sb.append(' '); + sb.append(config); + } + long size = args.getLong("size"); if (size > 0) { if (sb.length() > 0)