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 float rotation;
|
||||||
private boolean animated;
|
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) {
|
public SetMapLocationParams(double latitude, double longitude, int zoom, float rotation, boolean animated) {
|
||||||
this.latitude = latitude;
|
this.latitude = latitude;
|
||||||
this.longitude = longitude;
|
this.longitude = longitude;
|
||||||
|
|
|
@ -12,10 +12,6 @@ public class SetMapLocationParams implements Parcelable {
|
||||||
|
|
||||||
private boolean animated;
|
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) {
|
public SetMapLocationParams(double latitude, double longitude, int zoom, float rotation, boolean animated) {
|
||||||
this.latitude = latitude;
|
this.latitude = latitude;
|
||||||
this.longitude = longitude;
|
this.longitude = longitude;
|
||||||
|
@ -63,16 +59,16 @@ public class SetMapLocationParams implements Parcelable {
|
||||||
out.writeDouble(latitude);
|
out.writeDouble(latitude);
|
||||||
out.writeDouble(longitude);
|
out.writeDouble(longitude);
|
||||||
out.writeInt(zoom);
|
out.writeInt(zoom);
|
||||||
out.writeFloat(rotation);
|
|
||||||
out.writeByte((byte) (animated ? 1 : 0));
|
out.writeByte((byte) (animated ? 1 : 0));
|
||||||
|
out.writeFloat(rotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void readFromParcel(Parcel in) {
|
private void readFromParcel(Parcel in) {
|
||||||
latitude = in.readDouble();
|
latitude = in.readDouble();
|
||||||
longitude = in.readDouble();
|
longitude = in.readDouble();
|
||||||
zoom = in.readInt();
|
zoom = in.readInt();
|
||||||
rotation = in.readFloat();
|
|
||||||
animated = in.readByte() != 0;
|
animated = in.readByte() != 0;
|
||||||
|
rotation = in.readFloat();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
|
|
Loading…
Reference in a new issue