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