From 2e981afaed1d97a71ab5b06cf466a758b6aca06c Mon Sep 17 00:00:00 2001 From: Marcus Wolschon Date: Tue, 8 Feb 2011 08:56:08 +0100 Subject: [PATCH] if account is not ready (sd-card removed), fall through to the "else"-case, so onItemClick -handler still gets registred. Else inserting the SD-card without leaving the activity, THEN clicking the account will not do anything. --- src/com/fsck/k9/activity/Accounts.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/fsck/k9/activity/Accounts.java b/src/com/fsck/k9/activity/Accounts.java index 75f9f161a..df48a358a 100644 --- a/src/com/fsck/k9/activity/Accounts.java +++ b/src/com/fsck/k9/activity/Accounts.java @@ -297,10 +297,8 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC if (startup && K9.startIntegratedInbox()) { onOpenAccount(integratedInboxAccount); finish(); - } else if (startup && accounts.length == 1) { - if (onOpenAccount(accounts[0])) { - finish(); - } + } else if (startup && accounts.length == 1 && onOpenAccount(accounts[0])) { + // fall through to "else" if !onOpenAccount() } else { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); requestWindowFeature(Window.FEATURE_PROGRESS);