mirror of https://github.com/M66B/FairEmail.git
Suppress account name when moving between folders of same account
This commit is contained in:
parent
892e2757c3
commit
9f49191734
|
@ -2202,9 +2202,15 @@ public class FragmentMessages extends FragmentBase {
|
|||
}
|
||||
|
||||
private String getDisplay(ArrayList<MessageTarget> result) {
|
||||
boolean across = false;
|
||||
for (MessageTarget target : result)
|
||||
if (target.across)
|
||||
across = true;
|
||||
|
||||
List<String> displays = new ArrayList<>();
|
||||
for (MessageTarget target : result) {
|
||||
String display = target.account.name + "/" + target.folder.getDisplayName(getContext());
|
||||
String display = (across ? target.account.name + "/" : "") +
|
||||
target.folder.getDisplayName(getContext());
|
||||
if (!displays.contains(display))
|
||||
displays.add(display);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue