Merge tag 'ios-v3.7.6' into master
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.mapbox.mapboxsdk.http;
|
||||
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.os.Build;
|
||||
|
||||
@@ -1065,10 +1065,8 @@ public class MapView extends FrameLayout {
|
||||
// Called when user pushes a zoom button on the ZoomButtonController
|
||||
@Override
|
||||
public void onZoom(boolean zoomIn) {
|
||||
if (uiSettings.isZoomGesturesEnabled()) {
|
||||
cameraChangeDispatcher.onCameraMoveStarted(CameraChangeDispatcher.REASON_API_ANIMATION);
|
||||
onZoom(zoomIn, mapGestureDetector.getFocalPoint());
|
||||
}
|
||||
cameraChangeDispatcher.onCameraMoveStarted(CameraChangeDispatcher.REASON_API_ANIMATION);
|
||||
onZoom(zoomIn, mapGestureDetector.getFocalPoint());
|
||||
}
|
||||
|
||||
private void onZoom(boolean zoomIn, @Nullable PointF focalPoint) {
|
||||
|
||||
@@ -973,12 +973,7 @@ public final class UiSettings {
|
||||
initMargins[3] = bottom;
|
||||
|
||||
// convert initial margins with padding
|
||||
int[] contentPadding = projection.getContentPadding();
|
||||
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) view.getLayoutParams();
|
||||
left += contentPadding[0];
|
||||
top += contentPadding[1];
|
||||
right += contentPadding[2];
|
||||
bottom += contentPadding[3];
|
||||
layoutParams.setMargins(left, top, right, bottom);
|
||||
|
||||
// support RTL
|
||||
|
||||
Reference in New Issue
Block a user