Browse Source

Move somewhere

main
M66B 6 years ago
parent
commit
4eb1988427
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/src/main/java/eu/faircode/email/FragmentMessages.java

+ 3
- 1
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -270,6 +270,8 @@ public class FragmentMessages extends FragmentEx {
target = db.folder().getFolderByType(message.account, EntityFolder.ARCHIVE);
if (direction == ItemTouchHelper.LEFT || target == null)
target = db.folder().getFolderByType(message.account, EntityFolder.TRASH);
if (target == null)
target = db.folder().getFolderByType(message.account, EntityFolder.INBOX);
}
db.message().setMessageUiHide(message.id, true);
@ -279,7 +281,7 @@ public class FragmentMessages extends FragmentEx {
db.endTransaction();
}
Log.i(Helper.TAG, "Move id=" + id + " target=" + target);
Log.i(Helper.TAG, "Move id=" + id + " target=" + target.name);
return new String[]{target.name, target.display == null ? target.name : target.display};
}


Loading…
Cancel
Save