fix Can save profile with empty name as New Profile
This commit is contained in:
parent
19870f817e
commit
d44c78769b
1 changed files with 2 additions and 1 deletions
|
@ -593,7 +593,8 @@ public class EditProfileFragment extends BaseOsmAndFragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (profile.userProfileTitle.isEmpty()
|
if (profile.userProfileTitle.isEmpty()
|
||||||
|| profile.userProfileTitle.replace(" ", "").length() < 1) {
|
|| profile.userProfileTitle.replace(" ", "").length() < 1
|
||||||
|
|| profileNameEt.getText().toString().replace(" ", "").length() < 1) {
|
||||||
showSaveWarningDialog(
|
showSaveWarningDialog(
|
||||||
getString(R.string.profile_alert_need_profile_name_title),
|
getString(R.string.profile_alert_need_profile_name_title),
|
||||||
getString(R.string.profile_alert_need_profile_name_msg),
|
getString(R.string.profile_alert_need_profile_name_msg),
|
||||||
|
|
Loading…
Reference in a new issue