[android] Remove default transition duration
This commit is contained in:
@@ -78,7 +78,6 @@ public class MapboxConstants {
|
||||
public static final String STATE_DEBUG_ACTIVE = "debugActive";
|
||||
public static final String STATE_STYLE_URL = "styleUrl";
|
||||
public static final String STATE_ACCESS_TOKEN = "accessToken";
|
||||
public static final String STATE_DEFAULT_TRANSITION_DURATION = "defaultTransitionDuration";
|
||||
public static final String STATE_MY_LOCATION_ENABLED = "myLocationEnabled";
|
||||
public static final String STATE_MY_LOCATION_TRACKING_MODE = "myLocationTracking";
|
||||
public static final String STATE_MY_BEARING_TRACKING_MODE = "myBearingTracking";
|
||||
|
||||
@@ -355,8 +355,6 @@ public class MapView extends FrameLayout {
|
||||
mMapboxMap.setDebugActive(savedInstanceState.getBoolean(MapboxConstants.STATE_DEBUG_ACTIVE));
|
||||
mMapboxMap.setStyleUrl(savedInstanceState.getString(MapboxConstants.STATE_STYLE_URL));
|
||||
setAccessToken(savedInstanceState.getString(MapboxConstants.STATE_ACCESS_TOKEN));
|
||||
mNativeMapView.setDefaultTransitionDuration(
|
||||
savedInstanceState.getLong(MapboxConstants.STATE_DEFAULT_TRANSITION_DURATION));
|
||||
|
||||
// User location
|
||||
try {
|
||||
@@ -430,7 +428,6 @@ public class MapView extends FrameLayout {
|
||||
outState.putBoolean(MapboxConstants.STATE_DEBUG_ACTIVE, mMapboxMap.isDebugActive());
|
||||
outState.putString(MapboxConstants.STATE_STYLE_URL, mStyleUrl);
|
||||
outState.putString(MapboxConstants.STATE_ACCESS_TOKEN, mMapboxMap.getAccessToken());
|
||||
outState.putLong(MapboxConstants.STATE_DEFAULT_TRANSITION_DURATION, mNativeMapView.getDefaultTransitionDuration());
|
||||
outState.putBoolean(MapboxConstants.STATE_MY_LOCATION_ENABLED, mMapboxMap.isMyLocationEnabled());
|
||||
|
||||
// TrackingSettings
|
||||
|
||||
@@ -196,24 +196,6 @@ final class NativeMapView {
|
||||
return nativeGetClasses(mNativeMapViewPtr);
|
||||
}
|
||||
|
||||
public void setDefaultTransitionDuration() {
|
||||
setDefaultTransitionDuration(0);
|
||||
}
|
||||
|
||||
public long getDefaultTransitionDuration() {
|
||||
return nativeGetDefaultTransitionDuration(mNativeMapViewPtr);
|
||||
}
|
||||
|
||||
public void setDefaultTransitionDuration(long milliseconds) {
|
||||
if (milliseconds < 0) {
|
||||
throw new IllegalArgumentException(
|
||||
"milliseconds cannot be negative.");
|
||||
}
|
||||
|
||||
nativeSetDefaultTransitionDuration(mNativeMapViewPtr,
|
||||
milliseconds);
|
||||
}
|
||||
|
||||
public void setStyleUrl(String url) {
|
||||
nativeSetStyleUrl(mNativeMapViewPtr, url);
|
||||
}
|
||||
@@ -553,11 +535,6 @@ final class NativeMapView {
|
||||
|
||||
private native List<String> nativeGetClasses(long nativeMapViewPtr);
|
||||
|
||||
private native void nativeSetDefaultTransitionDuration(
|
||||
long nativeMapViewPtr, long duration);
|
||||
|
||||
private native long nativeGetDefaultTransitionDuration(long nativeMapViewPtr);
|
||||
|
||||
private native void nativeSetStyleUrl(long nativeMapViewPtr, String url);
|
||||
|
||||
private native void nativeSetStyleJson(long nativeMapViewPtr,
|
||||
|
||||
Reference in New Issue
Block a user