Update Issue 2168
Respect "Return to list after delete" after pressing on "Archive", "Move", or "Spam" button. TODO: Change strings to reflect this change (e.g. "Return to list after move/delete")
This commit is contained in:
parent
90ee194d0f
commit
df0ae4e4bf
1 changed files with 16 additions and 11 deletions
|
@ -1271,14 +1271,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||
disableButtons();
|
||||
Message messageToDelete = mMessage;
|
||||
|
||||
if (K9.messageViewReturnToList())
|
||||
{
|
||||
finish();
|
||||
}
|
||||
else
|
||||
{
|
||||
showNextMessage();
|
||||
}
|
||||
showNextMessageOrReturn();
|
||||
|
||||
MessagingController.getInstance(getApplication()).deleteMessages(
|
||||
new Message[] { messageToDelete },
|
||||
|
@ -1306,7 +1299,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||
{
|
||||
return;
|
||||
}
|
||||
showNextMessage();
|
||||
showNextMessageOrReturn();
|
||||
MessagingController.getInstance(getApplication())
|
||||
.moveMessage(mAccount, srcFolder, messageToMove, dstFolder, null);
|
||||
}
|
||||
|
@ -1331,11 +1324,23 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||
{
|
||||
return;
|
||||
}
|
||||
showNextMessage();
|
||||
showNextMessageOrReturn();
|
||||
MessagingController.getInstance(getApplication())
|
||||
.moveMessage(mAccount, srcFolder, messageToMove, dstFolder, null);
|
||||
}
|
||||
|
||||
private void showNextMessageOrReturn()
|
||||
{
|
||||
if (K9.messageViewReturnToList())
|
||||
{
|
||||
finish();
|
||||
}
|
||||
else
|
||||
{
|
||||
showNextMessage();
|
||||
}
|
||||
}
|
||||
|
||||
private void showNextMessage()
|
||||
{
|
||||
findSurroundingMessagesUid();
|
||||
|
@ -1535,7 +1540,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||
case ACTIVITY_CHOOSE_FOLDER_MOVE:
|
||||
Message messageToMove = mMessage;
|
||||
|
||||
showNextMessage();
|
||||
showNextMessageOrReturn();
|
||||
|
||||
MessagingController.getInstance(getApplication()).moveMessage(mAccount,
|
||||
srcFolderName, messageToMove, destFolderName, null);
|
||||
|
|
Loading…
Reference in a new issue