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.
This commit is contained in:
Marcus Wolschon 2011-02-08 08:56:08 +01:00
parent a4b62297ef
commit 2e981afaed

View file

@ -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);