mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Use default swipe actions for new account
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user