Suppress account name when moving between folders of same account

This commit is contained in:
M66B 2019-01-25 12:50:48 +00:00
parent 892e2757c3
commit 9f49191734
1 changed files with 7 additions and 1 deletions

View File

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