Fix oopsie on startup with no accounts

Bug: 5208939
Change-Id: Ia001dcacdb1dd014bdc480432d1eb7cbf7f56454
This commit is contained in:
Marc Blank 2011-09-20 17:36:17 -07:00
parent d6bd622299
commit 2fa301710f

View File

@ -340,10 +340,10 @@ public class Welcome extends Activity {
*/ */
private void resolveAccount() { private void resolveAccount() {
final int numAccount = EmailContent.count(this, Account.CONTENT_URI); final int numAccount = EmailContent.count(this, Account.CONTENT_URI);
boolean startAccountSetup = false;
if (numAccount == 0) { if (numAccount == 0) {
AccountSetupBasics.actionNewAccount(this); AccountSetupBasics.actionNewAccount(this);
finish(); finish();
return;
} else { } else {
mAccountId = resolveAccountId(this, mAccountId, mAccountUuid); mAccountId = resolveAccountId(this, mAccountId, mAccountUuid);
if (Account.isNormalAccount(mAccountId) && if (Account.isNormalAccount(mAccountId) &&