From 9c847d3e9dec4312e479eaa20f442ca5e3d0ffd7 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 6 Jan 2011 16:55:34 +0000 Subject: [PATCH] minor code cleanup --- src/com/fsck/k9/activity/MessageView.java | 24 +++++++++++------------ src/com/fsck/k9/mail/store/ImapStore.java | 2 +- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageView.java b/src/com/fsck/k9/activity/MessageView.java index d771b09c5..eedcd01d9 100644 --- a/src/com/fsck/k9/activity/MessageView.java +++ b/src/com/fsck/k9/activity/MessageView.java @@ -150,24 +150,22 @@ public class MessageView extends K9Activity implements OnClickListener @Override public void onUnmount(String providerId) { - if (providerId.equals(mAccount.getLocalStorageProviderId())) + if (!providerId.equals(mAccount.getLocalStorageProviderId())) { - runOnUiThread(new Runnable() - { - @Override - public void run() - { - onAccountUnavailable(); - } - }); + return; } + runOnUiThread(new Runnable() + { + @Override + public void run() + { + onAccountUnavailable(); + } + }); } @Override - public void onMount(String providerId) - { - // no-op - } + public void onMount(String providerId) {} // no-op } /** diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index 3e705d48c..69863d08f 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -555,7 +555,7 @@ public class ImapStore extends Store * * "A quoted string is a sequence of zero or more 7-bit characters, * excluding CR and LF, with double quote (<">) characters at each - * end." - ยง 4.3, RFC 3501 + * end." - Section 4.3, RFC 3501 * * Double quotes and backslash are escaped by prepending a backslash. *