From bae8a9736db2f28d4633bc638a8f3c9f7e53be4a Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 27 Jul 2010 01:28:03 +0000 Subject: [PATCH] Clean up some inverted logic --- src/com/fsck/k9/activity/MessageView.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageView.java b/src/com/fsck/k9/activity/MessageView.java index f8b3f0539..8947963cc 100644 --- a/src/com/fsck/k9/activity/MessageView.java +++ b/src/com/fsck/k9/activity/MessageView.java @@ -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(); + } + }