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("latitude", latitude);
|
||||||
bundle.putDouble("longitude", longitude);
|
bundle.putDouble("longitude", longitude);
|
||||||
bundle.putInt("zoom", zoom);
|
bundle.putInt("zoom", zoom);
|
||||||
bundle.putFloat("rotation",rotation);
|
bundle.putFloat("rotation", rotation);
|
||||||
bundle.putBoolean("animated", animated);
|
bundle.putBoolean("animated", animated);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -294,7 +294,6 @@ public class OsmandAidlApi {
|
||||||
int zoom = intent.getIntExtra(AIDL_ZOOM, 0);
|
int zoom = intent.getIntExtra(AIDL_ZOOM, 0);
|
||||||
boolean animated = intent.getBooleanExtra(AIDL_ANIMATED, false);
|
boolean animated = intent.getBooleanExtra(AIDL_ANIMATED, false);
|
||||||
float rotation = intent.getFloatExtra(AIDL_ROTATION, Float.NaN);
|
float rotation = intent.getFloatExtra(AIDL_ROTATION, Float.NaN);
|
||||||
|
|
||||||
if (!Double.isNaN(lat) && !Double.isNaN(lon)) {
|
if (!Double.isNaN(lat) && !Double.isNaN(lon)) {
|
||||||
OsmandMapTileView mapView = mapActivity.getMapView();
|
OsmandMapTileView mapView = mapActivity.getMapView();
|
||||||
if (zoom == 0) {
|
if (zoom == 0) {
|
||||||
|
@ -304,7 +303,7 @@ public class OsmandAidlApi {
|
||||||
zoom = zoom < mapView.getMinZoom() ? mapView.getMinZoom() : zoom;
|
zoom = zoom < mapView.getMinZoom() ? mapView.getMinZoom() : zoom;
|
||||||
}
|
}
|
||||||
if(rotation != Float.NaN) {
|
if(rotation != Float.NaN) {
|
||||||
mapView.setRotate(rotation,false);
|
mapView.setRotate(rotation, false);
|
||||||
}
|
}
|
||||||
if (animated) {
|
if (animated) {
|
||||||
mapView.getAnimatedDraggingThread().startMoving(lat, lon, zoom, true);
|
mapView.getAnimatedDraggingThread().startMoving(lat, lon, zoom, true);
|
||||||
|
|
Loading…
Reference in a new issue