mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-11 20:15:03 -05:00
Clean up some inverted logic
This commit is contained in:
parent
b1fb92034a
commit
bae8a9736d
@ -1002,11 +1002,8 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||||||
previous_scrolling.setEnabled(enablePrev);
|
previous_scrolling.setEnabled(enablePrev);
|
||||||
|
|
||||||
// If moving isn't support at all, then all of them must be disabled anyway.
|
// If moving isn't support at all, then all of them must be disabled anyway.
|
||||||
if (MessagingController.getInstance(getApplication()).isMoveCapable(mAccount) == false)
|
if (MessagingController.getInstance(getApplication()).isMoveCapable(mAccount))
|
||||||
{
|
|
||||||
disableMoveButtons();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Only enable the button if the Archive folder is not the current folder and not NONE.
|
// Only enable the button if the Archive folder is not the current folder and not NONE.
|
||||||
boolean enableArchive = !mMessageReference.folderName.equals(mAccount.getArchiveFolderName()) &&
|
boolean enableArchive = !mMessageReference.folderName.equals(mAccount.getArchiveFolderName()) &&
|
||||||
@ -1022,6 +1019,11 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||||||
mMoveScrolling.setEnabled(enableMove);
|
mMoveScrolling.setEnabled(enableMove);
|
||||||
mSpamScrolling.setEnabled(enableSpam);
|
mSpamScrolling.setEnabled(enableSpam);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
disableMoveButtons();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user