From 70d8338b458c78e5e68b8fad2351bf6acdf73eea Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 11 Sep 2014 14:35:31 +0200 Subject: [PATCH] move alarmControl to the left --- OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java | 4 ++-- .../osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index 2e2b42e607..d2637e9c65 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -289,8 +289,8 @@ public class MapInfoLayer extends OsmandMapLayer { statusBar.setLayoutParams(flp); flp = new FrameLayout.LayoutParams((int)(78 * scaleCoefficient), - (int)(78 * scaleCoefficient), Gravity.RIGHT | Gravity.BOTTOM); - flp.rightMargin = (int) (10*scaleCoefficient); + (int)(78 * scaleCoefficient), Gravity.LEFT | Gravity.BOTTOM); + flp.leftMargin = (int) (10*scaleCoefficient); flp.bottomMargin = (int) (85*scaleCoefficient); alarmControl.setLayoutParams(flp); diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index ac0f89670d..688b6c10b2 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -687,8 +687,8 @@ public class RouteInfoWidgetsFactory { locimgId = R.drawable.warnings_speed_bump; text = ""; } else if(alarm.getType() == AlarmInfoType.STOP) { - // text = "STOP"; - text = ""; + text = "STOP"; + //text = ""; } visible = (text != null && text.length() > 0) || locimgId != 0; if (visible) {