From 74a1ad87b39b95200c44219fcfee8214ad3c8c00 Mon Sep 17 00:00:00 2001 From: Miklos Fazekas Date: Tue, 30 Jun 2020 10:08:53 +0200 Subject: [PATCH] Fix padding issue on android --- .../java/com/mapbox/rctmgl/components/camera/CameraStop.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraStop.java b/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraStop.java index b9938fecf..cbc55b4a7 100644 --- a/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraStop.java +++ b/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/camera/CameraStop.java @@ -106,6 +106,7 @@ public CameraUpdateItem toCameraUpdate(MapboxMap map) { if (boundsCamera != null) { builder.target(boundsCamera.target); builder.zoom(boundsCamera.zoom); + builder.padding(boundsCamera.padding); } else { CameraUpdate update = CameraUpdateFactory.newLatLngBounds(mBounds, paddingLeft, paddingTop, paddingRight, paddingBottom);