Fix oopsie on startup with no accounts
Bug: 5208939 Change-Id: Ia001dcacdb1dd014bdc480432d1eb7cbf7f56454
This commit is contained in:
parent
d6bd622299
commit
2fa301710f
@ -340,10 +340,10 @@ public class Welcome extends Activity {
|
||||
*/
|
||||
private void resolveAccount() {
|
||||
final int numAccount = EmailContent.count(this, Account.CONTENT_URI);
|
||||
boolean startAccountSetup = false;
|
||||
if (numAccount == 0) {
|
||||
AccountSetupBasics.actionNewAccount(this);
|
||||
finish();
|
||||
return;
|
||||
} else {
|
||||
mAccountId = resolveAccountId(this, mAccountId, mAccountUuid);
|
||||
if (Account.isNormalAccount(mAccountId) &&
|
||||
|
Loading…
Reference in New Issue
Block a user