Fixed account folder selection

pull/156/head
M66B 6 years ago
parent b208c9dd38
commit 00d9374831

@ -1431,10 +1431,11 @@ public class FragmentAccount extends FragmentBase {
none.name = "-"; none.name = "-";
folders.add(0, none); folders.add(0, none);
adapter.clear(); for (EntityFolder folder : new ArrayList<>(folders))
for (EntityFolder folder : folders) if (EntityFolder.INBOX.equals(folder.type))
if (!EntityFolder.INBOX.equals(folder.type)) folders.remove(folder);
adapter.add(folder);
adapter.addAll(folders);
Long left = (account == null ? null : account.swipe_left); Long left = (account == null ? null : account.swipe_left);
Long right = (account == null ? null : account.swipe_right); Long right = (account == null ? null : account.swipe_right);

Loading…
Cancel
Save