Skip to content

Instantly share code, notes, and snippets.

@px-amaac
Created February 4, 2016 01:55
Show Gist options
  • Save px-amaac/1e25cd8443f3e9da8aa5 to your computer and use it in GitHub Desktop.
Save px-amaac/1e25cd8443f3e9da8aa5 to your computer and use it in GitHub Desktop.
LoginTesting
public void login(View viewUsername, View viewPassword) {
if (!makingLogin) {
if (adapter.checkAllFields((EditText) viewUsername,
(EditText) viewPassword)) {
makingLogin = true;
username = ((EditText) viewUsername).getText().toString()
.trim();
password = ((EditText) viewPassword).getText().toString()
.trim();
onLogin();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment