From 743eaf19d0cf1b328dafd58d9a0d7c3b1091435c Mon Sep 17 00:00:00 2001 From: Everton Hermann Date: Sat, 18 Jul 2020 13:44:45 +0200 Subject: [PATCH] Minor change, style --- .../src/net/osmand/aidlapi/map/SetMapLocationParams.java | 2 +- OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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);