Skip to content

Commit

Permalink
Issue #10: Correct name of attributes in DisableAccountLoginConfirmat…
Browse files Browse the repository at this point in the history
…ion class
  • Loading branch information
joao18araujo committed May 3, 2016
1 parent 0611ef1 commit d2f44d2
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
// Inflate the layout for this fragment

homePage = getActivity();
View view = inflater.inflate(R.layout.fragment_disable_account_login_confirmation, container, false);
View loginView = inflater.inflate(R.layout.fragment_disable_account_login_confirmation, container, false);

Button backButton = (Button)view.findViewById(R.id.button_back_id);
Button backButton = (Button) loginView.findViewById(R.id.button_back_id);
backButton.setOnClickListener(this);

Button disableButton = (Button)view.findViewById(R.id.button_disable_account_confirmation_id);
Button disableButton = (Button) loginView.findViewById(R.id.button_disable_account_confirmation_id);
disableButton.setOnClickListener(this);

return view;
return loginView;
}


Expand Down Expand Up @@ -87,12 +87,12 @@ private void returnToConfigurationOptions(FragmentManager fragmentManager) {
}

private boolean isLoginConfirmationValid() {
View view = getView();
View loginView = getView();

EditText usernameField = (EditText) view.findViewById(R.id.edit_text_login_id);
EditText usernameField = (EditText) loginView.findViewById(R.id.edit_text_login_id);
String typedUsername = usernameField.getText().toString();

EditText passwordField = (EditText) view.findViewById(R.id.edit_text_password_id);
EditText passwordField = (EditText) loginView.findViewById(R.id.edit_text_password_id);
String typedPassword = passwordField.getText().toString();

LoginValidation loginValidation = new LoginValidation(homePage);
Expand Down

0 comments on commit d2f44d2

Please sign in to comment.