Set left/right swipe folder on quick setup

pull/147/head
M66B 6 years ago
parent be44b781d5
commit 01ac7415d3

@ -318,6 +318,18 @@ public class FragmentQuickSetup extends FragmentBase {
folder.id = db.folder().insertFolder(folder);
}
// Set swipe left/right folder
for (EntityFolder folder : folders)
if (EntityFolder.TRASH.equals(folder.type))
account.swipe_left = folder.id;
else if (EntityFolder.ARCHIVE.equals(folder.type))
account.swipe_right = folder.id;
if (account.swipe_right == null && account.swipe_left != null)
account.swipe_right = account.swipe_left;
db.account().updateAccount(account);
// Create identity
EntityIdentity identity = new EntityIdentity();
identity.name = name;

Loading…
Cancel
Save