[android] - Fix crash on dalvik due to missing finalizers
This commit is contained in:
@@ -70,4 +70,8 @@ public class BackgroundLayer extends Layer {
|
||||
|
||||
private native Object nativeGetBackgroundOpacity();
|
||||
|
||||
|
||||
@Override
|
||||
protected native void finalize() throws Throwable;
|
||||
|
||||
}
|
||||
|
||||
@@ -132,4 +132,8 @@ public class CircleLayer extends Layer {
|
||||
|
||||
private native Object nativeGetCirclePitchScale();
|
||||
|
||||
|
||||
@Override
|
||||
protected native void finalize() throws Throwable;
|
||||
|
||||
}
|
||||
|
||||
@@ -27,4 +27,7 @@ public class CustomLayer extends Layer {
|
||||
|
||||
protected native void nativeUpdate();
|
||||
|
||||
@Override
|
||||
protected native void finalize() throws Throwable;
|
||||
|
||||
}
|
||||
|
||||
@@ -147,4 +147,8 @@ public class FillLayer extends Layer {
|
||||
|
||||
private native Object nativeGetFillPattern();
|
||||
|
||||
|
||||
@Override
|
||||
protected native void finalize() throws Throwable;
|
||||
|
||||
}
|
||||
|
||||
@@ -188,4 +188,8 @@ public class LineLayer extends Layer {
|
||||
|
||||
private native Object nativeGetLinePattern();
|
||||
|
||||
|
||||
@Override
|
||||
protected native void finalize() throws Throwable;
|
||||
|
||||
}
|
||||
|
||||
@@ -97,4 +97,8 @@ public class RasterLayer extends Layer {
|
||||
|
||||
private native Object nativeGetRasterFadeDuration();
|
||||
|
||||
|
||||
@Override
|
||||
protected native void finalize() throws Throwable;
|
||||
|
||||
}
|
||||
|
||||
@@ -505,4 +505,8 @@ public class SymbolLayer extends Layer {
|
||||
|
||||
private native Object nativeGetTextTranslateAnchor();
|
||||
|
||||
|
||||
@Override
|
||||
protected native void finalize() throws Throwable;
|
||||
|
||||
}
|
||||
|
||||
@@ -104,4 +104,8 @@ public class <%- camelize(type) %>Layer extends Layer {
|
||||
private native Object nativeGet<%- camelize(property.name) %>();
|
||||
|
||||
<% } -%>
|
||||
|
||||
@Override
|
||||
protected native void finalize() throws Throwable;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user