From 5afbbaf1f6db797fec4fbc6a3e0813fff402616e Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 26 Dec 2020 09:54:49 +0100 Subject: [PATCH] Use default folder color on move/ask --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index e2b094da05..ec684a9ab4 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -7953,6 +7953,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. source = getResources().getDrawable(EntityFolder.getIcon(sources.get(0)), null); if (source != null) source.setBounds(0, 0, source.getIntrinsicWidth(), source.getIntrinsicHeight()); + if (sourceColor == null) + sourceColor = EntityFolder.getDefaultColor(sources.get(0)); } else sourceColor = null; @@ -7961,6 +7963,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. target = getResources().getDrawable(EntityFolder.getIcon(targets.get(0)), null); if (target != null) target.setBounds(0, 0, target.getIntrinsicWidth(), target.getIntrinsicHeight()); + if (targetColor == null) + targetColor = EntityFolder.getDefaultColor(targets.get(0)); } else targetColor = null;