diff --git a/OsmAnd-api/src/net/osmand/aidlapi/map/SetMapLocationParams.java b/OsmAnd-api/src/net/osmand/aidlapi/map/SetMapLocationParams.java index d25a6f2325..d441682da5 100644 --- a/OsmAnd-api/src/net/osmand/aidlapi/map/SetMapLocationParams.java +++ b/OsmAnd-api/src/net/osmand/aidlapi/map/SetMapLocationParams.java @@ -13,10 +13,6 @@ public class SetMapLocationParams extends AidlParams { private float rotation; private boolean animated; - public SetMapLocationParams(double latitude, double longitude, int zoom, boolean animated) { - this(latitude, longitude, zoom, Float.NaN, animated); - } - public SetMapLocationParams(double latitude, double longitude, int zoom, float rotation, boolean animated) { this.latitude = latitude; this.longitude = longitude; diff --git a/OsmAnd-telegram/src/net/osmand/aidl/map/SetMapLocationParams.java b/OsmAnd-telegram/src/net/osmand/aidl/map/SetMapLocationParams.java index 8da25ce587..7feea74d20 100644 --- a/OsmAnd-telegram/src/net/osmand/aidl/map/SetMapLocationParams.java +++ b/OsmAnd-telegram/src/net/osmand/aidl/map/SetMapLocationParams.java @@ -12,10 +12,6 @@ public class SetMapLocationParams implements Parcelable { private boolean animated; - public SetMapLocationParams(double latitude, double longitude, int zoom, boolean animated) { - this(latitude, longitude, zoom, Float.NaN, animated); - } - public SetMapLocationParams(double latitude, double longitude, int zoom, float rotation, boolean animated) { this.latitude = latitude; this.longitude = longitude; @@ -63,16 +59,16 @@ public class SetMapLocationParams implements Parcelable { out.writeDouble(latitude); out.writeDouble(longitude); out.writeInt(zoom); - out.writeFloat(rotation); out.writeByte((byte) (animated ? 1 : 0)); + out.writeFloat(rotation); } private void readFromParcel(Parcel in) { latitude = in.readDouble(); longitude = in.readDouble(); zoom = in.readInt(); - rotation = in.readFloat(); animated = in.readByte() != 0; + rotation = in.readFloat(); } public int describeContents() {