Source:
<code>public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View v = inflater.inflate(R.layout.register_email_layout, container, false); mPasswordFieldValidator = new PasswordFieldValidator( (TextInputLayout) v.findViewById(R.id.password_layout), getResources().getInteger(R.integer.min_password_length)); mNameValidator = new RequiredFieldValidator( (TextInputLayout) v.findViewById(R.id.name_layout)); mEmailFieldValidator = new EmailFieldValidator( (TextInputLayout) v.findViewById(R.id.email_layout)); mEmailEditText = (EditText) v.findViewById(R.id.email); mNameEditText = (EditText) v.findViewById(R.id.name); mPasswordEditText = (EditText) v.findViewById(R.id.password); mAgreementText = (TextView) v.findViewById(R.id.create_account_text); mEmailInput = (TextInputLayout) v.findViewById(R.id.email_layout); mPasswordInput = (TextInputLayout) v.findViewById(R.id.password_layout); mEmailEditText.setOnFocusChangeListener(this); mNameEditText.setOnFocusChangeListener(this); mPasswordEditText.setOnFocusChangeListener(this); v.findViewById(R.id.button_create).setOnClickListener(this); String email = getArguments().getString(ExtraConstants.EXTRA_EMAIL); if (!TextUtils.isEmpty(email)) { <START> mEmailEditText.setText(email); <END> mNameEditText.requestFocus(); } String name = getArguments().getString(ExtraConstants.EXTRA_NAME); if (!TextUtils.isEmpty(name)) { mNameEditText.setText(name); mPasswordEditText.requestFocus(); } return v; }</code><technical_language>lock email field again? do this check if user existing account focus change. user change email knowing if account. Also, this condition true</technical_language>

Target:
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View v = inflater.inflate(R.layout.register_email_layout, container, false); mPasswordFieldValidator = new PasswordFieldValidator( (TextInputLayout) v.findViewById(R.id.password_layout), getResources().getInteger(R.integer.min_password_length)); mNameValidator = new RequiredFieldValidator( (TextInputLayout) v.findViewById(R.id.name_layout)); mEmailFieldValidator = new EmailFieldValidator( (TextInputLayout) v.findViewById(R.id.email_layout)); mEmailEditText = (EditText) v.findViewById(R.id.email); mNameEditText = (EditText) v.findViewById(R.id.name); mPasswordEditText = (EditText) v.findViewById(R.id.password); mAgreementText = (TextView) v.findViewById(R.id.create_account_text); mEmailInput = (TextInputLayout) v.findViewById(R.id.email_layout); mPasswordInput = (TextInputLayout) v.findViewById(R.id.password_layout); mEmailEditText.setOnFocusChangeListener(this); mNameEditText.setOnFocusChangeListener(this); mPasswordEditText.setOnFocusChangeListener(this); v.findViewById(R.id.button_create).setOnClickListener(this); if (savedInstanceState != null) { return v; } String email = mUser.getEmail(); if (!TextUtils.isEmpty(email)) { mEmailEditText.setText(email); } String name = mUser.getName(); if (!TextUtils.isEmpty(name)) { mNameEditText.setText(name); } if (!TextUtils.isEmpty(mNameEditText.getText())) { safeRequestFocus(mPasswordEditText); } else if (!TextUtils.isEmpty(mEmailEditText.getText())) { safeRequestFocus(mNameEditText); } else { safeRequestFocus(mEmailEditText); } return v; }