1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

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()) { if (startup && K9.startIntegratedInbox()) {
onOpenAccount(integratedInboxAccount); onOpenAccount(integratedInboxAccount);
finish(); finish();
} else if (startup && accounts.length == 1) { } else if (startup && accounts.length == 1 && onOpenAccount(accounts[0])) {
if (onOpenAccount(accounts[0])) { // fall through to "else" if !onOpenAccount()
finish();
}
} else { } else {
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
requestWindowFeature(Window.FEATURE_PROGRESS); requestWindowFeature(Window.FEATURE_PROGRESS);