From d44c78769b99fc92454c657d34f16c335bd70db8 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Wed, 26 Jun 2019 13:21:48 +0300 Subject: [PATCH] fix Can save profile with empty name as New Profile --- OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java b/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java index 0f8c10f4fc..9e6ba6e5d6 100644 --- a/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java +++ b/OsmAnd/src/net/osmand/plus/profiles/EditProfileFragment.java @@ -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),