deprecate MapboxMap#cycleDebugActive
This commit is contained in:
@@ -775,10 +775,12 @@ public final class MapboxMap {
|
||||
* any map debug options enabled or disabled.
|
||||
*
|
||||
* @see #isDebugActive()
|
||||
* @deprecated use {@link #setDebugActive(boolean)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void cycleDebugOptions() {
|
||||
nativeMapView.cycleDebugOptions();
|
||||
this.debugActive = nativeMapView.getDebug();
|
||||
this.debugActive = !nativeMapView.getDebug();
|
||||
nativeMapView.setDebug(debugActive);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@@ -209,8 +209,6 @@ interface NativeMap {
|
||||
|
||||
boolean getDebug();
|
||||
|
||||
void cycleDebugOptions();
|
||||
|
||||
void setReachability(boolean status);
|
||||
|
||||
void setApiBaseUrl(String baseUrl);
|
||||
|
||||
@@ -583,14 +583,6 @@ final class NativeMapView implements NativeMap {
|
||||
nativeSetDebug(debug);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cycleDebugOptions() {
|
||||
if (checkState("cycleDebugOptions")) {
|
||||
return;
|
||||
}
|
||||
nativeCycleDebugOptions();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getDebug() {
|
||||
if (checkState("getDebug")) {
|
||||
@@ -1263,9 +1255,6 @@ final class NativeMapView implements NativeMap {
|
||||
@Keep
|
||||
private native void nativeSetDebug(boolean debug);
|
||||
|
||||
@Keep
|
||||
private native void nativeCycleDebugOptions();
|
||||
|
||||
@Keep
|
||||
private native boolean nativeGetDebug();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user