am 1a9c5fe7: Fix automatic account creation

* commit '1a9c5fe7ade0c95c155e9b8dade7b7e1ee3cb6f5':
  Fix automatic account creation
This commit is contained in:
Tony Mantler 2014-04-02 23:31:54 +00:00 committed by Android Git Automerger
commit 1498223043
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();
}
}