From b9e886ef64461282210937c7145b93e81066fa50 Mon Sep 17 00:00:00 2001 From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com> Date: Thu, 1 Apr 2021 22:00:04 +0300 Subject: [PATCH] Underlay, overlay naming fix --- OsmAnd/src/net/osmand/plus/rastermaps/MapOverlayAction.java | 2 +- OsmAnd/src/net/osmand/plus/rastermaps/MapUnderlayAction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/MapOverlayAction.java b/OsmAnd/src/net/osmand/plus/rastermaps/MapOverlayAction.java index 41ae2b709b..8190b6c995 100644 --- a/OsmAnd/src/net/osmand/plus/rastermaps/MapOverlayAction.java +++ b/OsmAnd/src/net/osmand/plus/rastermaps/MapOverlayAction.java @@ -230,6 +230,6 @@ public class MapOverlayAction extends SwitchableAction> { String currentSource = application.getSettings().MAP_OVERLAY.get() == null ? KEY_NO_OVERLAY : application.getSettings().MAP_OVERLAY.get(); - return application.getString(R.string.map_quick_action_pattern, currentSource); + return application.getString(R.string.map_quick_action_pattern, getTranslatedItemName(application, currentSource)); } } diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/MapUnderlayAction.java b/OsmAnd/src/net/osmand/plus/rastermaps/MapUnderlayAction.java index bb3708ba03..ddb941e10b 100644 --- a/OsmAnd/src/net/osmand/plus/rastermaps/MapUnderlayAction.java +++ b/OsmAnd/src/net/osmand/plus/rastermaps/MapUnderlayAction.java @@ -232,6 +232,6 @@ public class MapUnderlayAction extends SwitchableAction> { String currentSource = application.getSettings().MAP_UNDERLAY.get() == null ? KEY_NO_UNDERLAY : application.getSettings().MAP_UNDERLAY.get(); - return application.getString(R.string.map_quick_action_pattern, currentSource); + return application.getString(R.string.map_quick_action_pattern, getTranslatedItemName(application, currentSource)); } }