From f68b70ad0c4126158bb8ba7dd56243d4f4007858 Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 11 May 2018 16:16:38 +0300 Subject: [PATCH] fix #5385 --- .../plus/views/mapwidgets/RouteInfoWidgetsFactory.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index bcdb75f92c..2b97479f6b 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -23,6 +23,7 @@ import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; +import net.osmand.AndroidUtils; import net.osmand.Location; import net.osmand.binary.RouteDataObject; import net.osmand.data.LatLon; @@ -1309,6 +1310,11 @@ public class RouteInfoWidgetsFactory { if (!Algorithms.objectEquals(text, this.textString)) { textString = text; this.text.setText(this.textString); + if (alarm.getType() == AlarmInfoType.SPEED_LIMIT && settings.DRIVING_REGION.get().americanSigns) { + this.text.setPadding(0, AndroidUtils.dpToPx(layout.getContext(), 20f), 0, 0); + } else { + this.text.setPadding(0, 0, 0, 0); + } } if (!Algorithms.objectEquals(bottomText, this.bottomTextString)) { bottomTextString = bottomText;