Use default swipe actions for new account

This commit is contained in:
M66B
2023-04-07 11:25:54 +02:00
parent 73d6cccda7
commit f209c689ce
5 changed files with 70 additions and 76 deletions

View File

@@ -557,13 +557,8 @@ public class FragmentGmail extends FragmentBase {
if (pop) {
account.swipe_left = EntityMessage.SWIPE_ACTION_DELETE;
account.swipe_right = EntityMessage.SWIPE_ACTION_SEEN;
} else {
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;
}
} else
FragmentDialogSwipes.setDefaultFolderActions(context, account.id);
db.account().updateAccount(account);