Fix automatic account creation

b/13695686

Change-Id: I108989e50337a839c42fdff1cc11697d8adee954
This commit is contained in:
Tony Mantler 2014-04-01 15:10:18 -07:00
parent 0db900d622
commit 1a9c5fe7ad
1 changed files with 8 additions and 1 deletions

View File

@ -320,7 +320,13 @@ public class AccountSetupFinal extends AccountSetupActivity
if (!autoSetupCompleted) {
LogUtils.e(LogUtils.TAG, "Force create account failed to create account");
finish();
return;
}
final Account account = mSetupData.getAccount();
final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this);
recvAuth.mPassword = password;
final HostAuth sendAuth = account.getOrCreateHostAuthSend(this);
sendAuth.mPassword = password;
} else {
final Account account = mSetupData.getAccount();
@ -434,7 +440,8 @@ public class AccountSetupFinal extends AccountSetupActivity
// We need to do this after onCreate so that we can ensure that the fragment is
// fully created before querying it.
initiateAccountCreation();
// This will call initiateAccountCreation() for us
proceed();
}
}