Index: libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
index 53398fa5078a8544b718eb8aee456b7ca2fb2a7d..f3d72d8fcd5fb844e30ee7c6b77be9986f149884 100644 |
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java |
@@ -36,13 +36,9 @@ public final class FilterEngine implements Disposable |
OBJECT_SUBREQUEST, FONT, MEDIA |
} |
- public FilterEngine(final JsEngine jsEngine, final IsAllowedConnectionCallback isAllowedConnectionCallback) |
+ public FilterEngine(final JsEngine jsEngine, final IsAllowedConnectionCallback isSubscriptionDownloadAllowedCallback) |
{ |
- long jisAllowedConnectionCallbackPtr = |
- (isAllowedConnectionCallback != null |
- ? isAllowedConnectionCallback.ptr |
- : 0l); |
- this.ptr = ctor(jsEngine.ptr, jisAllowedConnectionCallbackPtr); |
+ this.ptr = ctor(jsEngine.ptr, isSubscriptionDownloadAllowedCallback); |
this.disposer = new Disposer(this, new DisposeWrapper(this.ptr)); |
} |
@@ -230,7 +226,7 @@ public final class FilterEngine implements Disposable |
private final static native void registerNatives(); |
- private final static native long ctor(long jsEnginePtr, long isAllowedConnectionCallbackPtr); |
+ private final static native long ctor(long jsEnginePtr, IsAllowedConnectionCallback isSubscriptionDownloadAllowedCallback); |
private final static native boolean isFirstRun(long ptr); |