diff --git a/OsmAnd-api/src/net/osmand/aidlapi/map/SetMapLocationParams.java b/OsmAnd-api/src/net/osmand/aidlapi/map/SetMapLocationParams.java index 21bc5dc2c3..d25a6f2325 100644 --- a/OsmAnd-api/src/net/osmand/aidlapi/map/SetMapLocationParams.java +++ b/OsmAnd-api/src/net/osmand/aidlapi/map/SetMapLocationParams.java @@ -66,7 +66,7 @@ public class SetMapLocationParams extends AidlParams { bundle.putDouble("latitude", latitude); bundle.putDouble("longitude", longitude); bundle.putInt("zoom", zoom); - bundle.putFloat("rotation",rotation); + bundle.putFloat("rotation", rotation); bundle.putBoolean("animated", animated); } diff --git a/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java b/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java index ee71bb095b..cd0ac98783 100644 --- a/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java +++ b/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java @@ -294,7 +294,6 @@ public class OsmandAidlApi { int zoom = intent.getIntExtra(AIDL_ZOOM, 0); boolean animated = intent.getBooleanExtra(AIDL_ANIMATED, false); float rotation = intent.getFloatExtra(AIDL_ROTATION, Float.NaN); - if (!Double.isNaN(lat) && !Double.isNaN(lon)) { OsmandMapTileView mapView = mapActivity.getMapView(); if (zoom == 0) { @@ -304,7 +303,7 @@ public class OsmandAidlApi { zoom = zoom < mapView.getMinZoom() ? mapView.getMinZoom() : zoom; } if(rotation != Float.NaN) { - mapView.setRotate(rotation,false); + mapView.setRotate(rotation, false); } if (animated) { mapView.getAnimatedDraggingThread().startMoving(lat, lon, zoom, true);