Skip to content

Commit 2415307

Browse files
committed
Use TextUtils.isEmpty on password field
This was initially using isDigitsOnly which was incorrect since only a non-empty password was intended to be verified to determine enablement of the login action bar button. Closes issue pockethub#76
1 parent 760886c commit 2415307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/github/mobile/accounts/LoginActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ protected void onResume() {
220220

221221
private boolean loginEnabled() {
222222
return !TextUtils.isEmpty(loginText.getText())
223-
&& !TextUtils.isDigitsOnly(passwordText.getText());
223+
&& !TextUtils.isEmpty(passwordText.getText());
224224
}
225225

226226
private void updateEnablement() {

0 commit comments

Comments
 (0)