From 1ad893c3da3d4c78810f2a6bfb299b2169b37873 Mon Sep 17 00:00:00 2001 From: Everton Hermann Date: Sun, 19 Jul 2020 17:54:26 +0200 Subject: [PATCH] Minor fix, forgot to update Osmand-Telegram --- .../src/net/osmand/aidlapi/map/SetMapLocationParams.java | 4 ---- .../src/net/osmand/aidl/map/SetMapLocationParams.java | 8 ++------ 2 files changed, 2 insertions(+), 10 deletions(-) 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() {