mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
* Fixed Grey empty screen at Upload wizard caption step after denying files permission * Empty commit * Fixed loop issue * Created docs for earlier commits * Fixed javadoc * Fixed spaces * Added added basic features to OSM Maps * Added search location feature * Added filter to Open Street Maps * Fixed chipGroup in Open Street Maps * Removed mapBox code * Removed mapBox's code * Reformat code * Reformatted code * Removed rotation feature to map * Removed rotation files and Fixed Marker click problem * Ignored failing tests * Added voice input feature * Fixed test cases * Changed caption and description text * Replaced mapbox to osmdroid in upload activity * Fixed Unit Tests * Made selected marker to be fixed on map * Changed color of map marker * Fixes #5439 by capitalizing first letter of voice input * Removed mapbox code1 * Removed mapbox code2 * Fixed failing tests * Fixed failing due to merging
33 lines
876 B
Kotlin
33 lines
876 B
Kotlin
package fr.free.nrw.commons
|
|
|
|
import android.os.Parcel
|
|
import android.os.Parcelable
|
|
|
|
class CameraPosition(val latitude: Double, val longitude: Double, val zoom: Double) : Parcelable {
|
|
|
|
constructor(parcel: Parcel) : this(
|
|
parcel.readDouble(),
|
|
parcel.readDouble(),
|
|
parcel.readDouble()
|
|
)
|
|
|
|
override fun writeToParcel(parcel: Parcel, flags: Int) {
|
|
parcel.writeDouble(latitude)
|
|
parcel.writeDouble(longitude)
|
|
parcel.writeDouble(zoom)
|
|
}
|
|
|
|
override fun describeContents(): Int {
|
|
return 0
|
|
}
|
|
|
|
companion object CREATOR : Parcelable.Creator<CameraPosition> {
|
|
override fun createFromParcel(parcel: Parcel): CameraPosition {
|
|
return CameraPosition(parcel)
|
|
}
|
|
|
|
override fun newArray(size: Int): Array<CameraPosition?> {
|
|
return arrayOfNulls(size)
|
|
}
|
|
}
|
|
}
|