Skip to content

Commit

Permalink
Don't allow creating or renaming a member with an empty name.
Browse files Browse the repository at this point in the history
  • Loading branch information
caarmen committed May 18, 2016
1 parent cfeb9b2 commit 015079b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private static void validateText(final Context context, AlertDialog dialog, fina
// Start off with everything a-ok.
editText.setError(null);
final Button okButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);
okButton.setEnabled(true);
okButton.setEnabled(!TextUtils.isEmpty(editText.getText()));

// Search for an error in background thread, update the dialog in the UI thread.
AsyncTask<String, Void, String> task = new AsyncTask<String, Void, String>() {
Expand Down

0 comments on commit 015079b

Please sign in to comment.