Move account force-creation to onResume()
Otherwise the fragment we query for the values isn't fully created yet. b/12762185 Change-Id: I39ffa578e4bd6f6b5080112fa3cc617bbecbe158
This commit is contained in:
parent
b7361cf741
commit
adf6cbed87
@ -63,6 +63,7 @@ public class AccountSetupFinal extends AccountSetupActivity implements View.OnCl
|
||||
private int mState = STATE_OPTIONS;
|
||||
|
||||
private boolean mIsProcessing = false;
|
||||
private boolean mForceCreate = false;
|
||||
|
||||
private Button mNextButton;
|
||||
|
||||
@ -96,6 +97,17 @@ public class AccountSetupFinal extends AccountSetupActivity implements View.OnCl
|
||||
&& mSetupData.getFlowMode() == SetupDataFragment.FLOW_MODE_FORCE_CREATE) {
|
||||
// If we are just visiting here to fill in details, exit immediately
|
||||
getFragmentManager().executePendingTransactions();
|
||||
mForceCreate = true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
if (mForceCreate) {
|
||||
mForceCreate = false;
|
||||
// We need to do this after onCreate so that we can ensure that the fragment is fully
|
||||
// created before querying it.
|
||||
initiateAccountCreation();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user