Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 29405564: Issue 5121 - Use Acceptable Ads API in libadblockplus (Closed)
Patch Set: updated dependency to -binaries Created April 7, 2017, 10:14 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 c43de392ce62a1bf1cbef719ca31049974701a66..59fa1cca30bc8cf46e3b38b6b1cd2971535f3afe 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
@@ -181,6 +181,21 @@ public final class FilterEngine implements Disposable
return getAllowedConnectionType(this.ptr);
}
+ public void setAcceptableAdsEnabled(final boolean enabled)
+ {
+ setAcceptableAdsEnabled(this.ptr, enabled);
+ }
+
+ public boolean isAcceptableAdsEnabled()
+ {
+ return isAcceptableAdsEnabled(this.ptr);
+ }
+
+ public String getAcceptableAdsSubscriptionURL()
+ {
+ return getAcceptableAdsSubscriptionURL(this.ptr);
+ }
+
@Override
public void dispose()
{
@@ -255,5 +270,11 @@ public final class FilterEngine implements Disposable
private final static native String getAllowedConnectionType(long ptr);
+ private final static native void setAcceptableAdsEnabled(long ptr, boolean enabled);
+
+ private final static native boolean isAcceptableAdsEnabled(long ptr);
+
+ private final static native String getAcceptableAdsSubscriptionURL(long ptr);
+
private final static native void dtor(long ptr);
}

Powered by Google App Engine
This is Rietveld