1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Use default folder color on move/ask

This commit is contained in:
M66B 2020-12-26 09:54:49 +01:00
parent 9b5b9f30f3
commit 5afbbaf1f6

View file

@ -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;