1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Clean up some inverted logic

This commit is contained in:
Jesse Vincent 2010-07-27 01:28:03 +00:00
parent b1fb92034a
commit bae8a9736d

View File

@ -1002,11 +1002,8 @@ public class MessageView extends K9Activity implements OnClickListener
previous_scrolling.setEnabled(enablePrev);
// If moving isn't support at all, then all of them must be disabled anyway.
if (MessagingController.getInstance(getApplication()).isMoveCapable(mAccount) == false)
{
disableMoveButtons();
}
else
if (MessagingController.getInstance(getApplication()).isMoveCapable(mAccount))
{
// Only enable the button if the Archive folder is not the current folder and not NONE.
boolean enableArchive = !mMessageReference.folderName.equals(mAccount.getArchiveFolderName()) &&
@ -1022,6 +1019,11 @@ public class MessageView extends K9Activity implements OnClickListener
mMoveScrolling.setEnabled(enableMove);
mSpamScrolling.setEnabled(enableSpam);
}
else
{
disableMoveButtons();
}
}