Created
February 4, 2016 01:55
-
-
Save px-amaac/1e25cd8443f3e9da8aa5 to your computer and use it in GitHub Desktop.
LoginTesting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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