fix Can save profile with empty name as New Profile

This commit is contained in:
madwasp79 2019-06-26 13:21:48 +03:00
parent 19870f817e
commit d44c78769b

View file

@ -593,7 +593,8 @@ public class EditProfileFragment extends BaseOsmAndFragment {
}
if (profile.userProfileTitle.isEmpty()
|| profile.userProfileTitle.replace(" ", "").length() < 1) {
|| profile.userProfileTitle.replace(" ", "").length() < 1
|| profileNameEt.getText().toString().replace(" ", "").length() < 1) {
showSaveWarningDialog(
getString(R.string.profile_alert_need_profile_name_title),
getString(R.string.profile_alert_need_profile_name_msg),