diff --git a/OsmAnd/src/net/osmand/plus/settings/backend/ApplicationMode.java b/OsmAnd/src/net/osmand/plus/settings/backend/ApplicationMode.java index efb02fefc0..ebe2d7ea12 100644 --- a/OsmAnd/src/net/osmand/plus/settings/backend/ApplicationMode.java +++ b/OsmAnd/src/net/osmand/plus/settings/backend/ApplicationMode.java @@ -15,6 +15,8 @@ import net.osmand.plus.profiles.ProfileIconColors; import net.osmand.plus.routing.RouteProvider.RouteService; import net.osmand.util.Algorithms; +import org.apache.commons.lang3.StringUtils; + import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; @@ -330,8 +332,12 @@ public class ApplicationMode { public String toHumanString() { String userProfileName = getUserProfileName(); - if (Algorithms.isEmpty(userProfileName) && keyName != -1) { - return app.getString(keyName); + if (Algorithms.isEmpty(userProfileName)) { + if (keyName != -1) { + return app.getString(keyName); + } else { + return StringUtils.capitalize(getStringKey()); + } } else { return userProfileName; } diff --git a/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureProfileFragment.java b/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureProfileFragment.java index e421a981b9..93edb8ca7a 100644 --- a/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureProfileFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/fragments/ConfigureProfileFragment.java @@ -465,7 +465,7 @@ public class ConfigureProfileFragment extends BaseSettingsFragment implements Co bld.setTitle(R.string.profile_alert_delete_title); bld.setMessage(String .format(getString(R.string.profile_alert_delete_msg), - profile.getUserProfileName())); + profile.toHumanString())); bld.setPositiveButton(R.string.shared_string_delete, new DialogInterface.OnClickListener() { @Override