Minor change, style
This commit is contained in:
parent
5d61f19511
commit
743eaf19d0
2 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue