Minor fix, forgot to update Osmand-Telegram
This commit is contained in:
parent
e87ed289c7
commit
1ad893c3da
2 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue