Remove the warning for uppercase in account creation for valid username
This commit is contained in:
parent
152858a242
commit
e7569a342a
1 changed files with 7 additions and 3 deletions
|
@ -117,9 +117,13 @@ public class WizardFragment extends Fragment {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
builder.setMessage(getString(R.string.setup_confirm_username).replace("%s", username.getText().toString().toLowerCase(Locale.getDefault())));
|
if(!username.getText().toString().equals(username.getText().toString().toLowerCase(Locale.getDefault()))){
|
||||||
AlertDialog dialog = builder.create();
|
builder.setMessage(getString(R.string.setup_confirm_username).replace("%s", username.getText().toString().toLowerCase(Locale.getDefault())));
|
||||||
dialog.show();
|
AlertDialog dialog = builder.create();
|
||||||
|
dialog.show();
|
||||||
|
} else {
|
||||||
|
createAccount(username.getText().toString().toLowerCase(Locale.getDefault()), password.getText().toString(), email.getText().toString(), false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue