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:
parent
a4b62297ef
commit
2e981afaed
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue