Fix error string

This commit is contained in:
Dima-1 2020-06-30 12:16:57 +03:00
parent 73f2196e88
commit 50d1ac4b72
2 changed files with 2 additions and 1 deletions

View file

@ -11,6 +11,7 @@
Thx - Hardy Thx - Hardy
--> -->
<string name="please_provide_point_name_error">Please provide a name for the point</string>
<string name="use_volume_buttons_as_zoom">Volume buttons as zoom</string> <string name="use_volume_buttons_as_zoom">Volume buttons as zoom</string>
<string name="use_volume_buttons_as_zoom_descr">Enable to control the map zoom level with device volume buttons.</string> <string name="use_volume_buttons_as_zoom_descr">Enable to control the map zoom level with device volume buttons.</string>
<string name="app_mode_inline_skates">Inline skates</string> <string name="app_mode_inline_skates">Inline skates</string>

View file

@ -202,7 +202,7 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment {
@Override @Override
public void afterTextChanged(Editable s) { public void afterTextChanged(Editable s) {
if (s.toString().trim().isEmpty()) { if (s.toString().trim().isEmpty()) {
nameCaption.setError(app.getString(R.string.please_provide_profile_name_message)); nameCaption.setError(app.getString(R.string.please_provide_point_name_error));
saveButton.setEnabled(false); saveButton.setEnabled(false);
} else { } else {
nameCaption.setError(null); nameCaption.setError(null);