diff --git a/play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/GoogleMap.kt b/play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/GoogleMap.kt index 662817b6111dc01abd665b2f6576a6501a01b0e0..8bb14fa2b69f643aacfb283f55155115202a1fce 100644 --- a/play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/GoogleMap.kt +++ b/play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/GoogleMap.kt @@ -468,9 +468,7 @@ class GoogleMapImpl(context: Context, var options: GoogleMapOptions) : AbstractG override fun setPadding(left: Int, top: Int, right: Int, bottom: Int) = afterInitialize { map -> Log.d(TAG, "setPadding: $left $top $right $bottom") - CameraUpdateFactory.paddingTo(left.toDouble(), top.toDouble(), right.toDouble(), bottom.toDouble()) - .let { map.moveCamera(it) } - + map.setPadding(left, top, right, bottom) val fourDp = mapView?.context?.resources?.getDimension(R.dimen.maplibre_four_dp)?.toInt() ?: 0 val ninetyTwoDp = mapView?.context?.resources?.getDimension(R.dimen.maplibre_ninety_two_dp)?.toInt()