mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
Replace deprecated zoomLevel with zoomLevelDouble
This commit is contained in:
parent
3bfa3612c6
commit
18dc1dd573
2 changed files with 3 additions and 3 deletions
|
|
@ -447,7 +447,7 @@ class LocationPickerActivity : BaseActivity(), LocationPermissionCallback {
|
|||
LAST_LOCATION,
|
||||
"${mapView?.mapCenter?.latitude},${mapView?.mapCenter?.longitude}"
|
||||
)
|
||||
applicationKvStore.putString(LAST_ZOOM, mapView?.zoomLevel?.toString()!!)
|
||||
applicationKvStore.putString(LAST_ZOOM, mapView?.zoomLevelDouble?.toString()!!)
|
||||
}
|
||||
|
||||
if (media == null) {
|
||||
|
|
|
|||
|
|
@ -165,13 +165,13 @@ class LocationPickerActivityUnitTests {
|
|||
"placeSelected",
|
||||
)
|
||||
`when`(mapView.mapCenter).thenReturn(position)
|
||||
`when`(mapView.zoomLevel).thenReturn(15)
|
||||
`when`(mapView.zoomLevelDouble).thenReturn(15.0)
|
||||
method.isAccessible = true
|
||||
method.invoke(activity)
|
||||
verify(applicationKvStore, times(1)).putString(
|
||||
LAST_LOCATION,
|
||||
position.latitude.toString() + "," + position.longitude.toString(),
|
||||
)
|
||||
verify(applicationKvStore, times(1)).putString(LAST_ZOOM, mapView.zoomLevel.toString())
|
||||
verify(applicationKvStore, times(1)).putString(LAST_ZOOM, mapView.zoomLevelDouble.toString())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue