diff --git a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapOverlayAction.java b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapOverlayAction.java index 94c0188aaf..58d6e6210c 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapOverlayAction.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapOverlayAction.java @@ -118,7 +118,8 @@ public class MapOverlayAction extends SwitchableAction> { settings.MAP_OVERLAY_PREVIOUS.set(null); } plugin.updateMapLayers(activity.getMapView(), settings.MAP_OVERLAY, activity.getMapLayers()); - Toast.makeText(activity, activity.getString(R.string.quick_action_map_overlay_switch, params), Toast.LENGTH_SHORT).show(); + Toast.makeText(activity, activity.getString(R.string.quick_action_map_overlay_switch, + getTranslatedItemName(activity, params)), Toast.LENGTH_SHORT).show(); } } diff --git a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapSourceAction.java b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapSourceAction.java index 839403144e..6123015b91 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapSourceAction.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapSourceAction.java @@ -109,7 +109,8 @@ public class MapSourceAction extends SwitchableAction> { settings.MAP_ONLINE_DATA.set(true); activity.getMapLayers().updateMapSource(activity.getMapView(), settings.MAP_TILE_SOURCES); } - Toast.makeText(activity, activity.getString(R.string.quick_action_map_source_switch, getTranslatedItemName(activity, params)), Toast.LENGTH_SHORT).show(); + Toast.makeText(activity, activity.getString(R.string.quick_action_map_source_switch, + getTranslatedItemName(activity, params)), Toast.LENGTH_SHORT).show(); } @Override diff --git a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapStyleAction.java b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapStyleAction.java index 2e411cff73..8cf8ab2286 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapStyleAction.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapStyleAction.java @@ -70,7 +70,8 @@ public class MapStyleAction extends SwitchableAction { app.getRendererRegistry().setCurrentSelectedRender(loaded); ConfigureMapMenu.refreshMapComplete(activity); - Toast.makeText(activity, activity.getString(R.string.quick_action_map_style_switch, getTranslatedItemName(activity,params)), Toast.LENGTH_SHORT).show(); + Toast.makeText(activity, activity.getString(R.string.quick_action_map_style_switch, + getTranslatedItemName(activity, params)), Toast.LENGTH_SHORT).show(); } else { Toast.makeText(activity, R.string.renderer_load_exception, Toast.LENGTH_SHORT).show(); } diff --git a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapUnderlayAction.java b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapUnderlayAction.java index de492ef91c..93771f68c4 100644 --- a/OsmAnd/src/net/osmand/plus/quickaction/actions/MapUnderlayAction.java +++ b/OsmAnd/src/net/osmand/plus/quickaction/actions/MapUnderlayAction.java @@ -121,7 +121,8 @@ public class MapUnderlayAction extends SwitchableAction> { hidePolygonsPref.set(hasUnderlay); plugin.updateMapLayers(activity.getMapView(), settings.MAP_UNDERLAY, activity.getMapLayers()); - Toast.makeText(activity, activity.getString(R.string.quick_action_map_underlay_switch, params), Toast.LENGTH_SHORT).show(); + Toast.makeText(activity, activity.getString(R.string.quick_action_map_underlay_switch, + getTranslatedItemName(activity, params)), Toast.LENGTH_SHORT).show(); } }