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

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

Issue 29405564: Issue 5121 - Use Acceptable Ads API in libadblockplus (Closed)
Patch Set: Created April 7, 2017, 7:03 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/Subscription.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/Subscription.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/Subscription.java
index d6627f8a51922d2f6fea9ee57237f9e694312a31..99e30ae800c912f96b57cb27665f386fa3b4b824 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/Subscription.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/Subscription.java
@@ -55,6 +55,11 @@ public final class Subscription extends JsValue
return isUpdating(this.ptr);
}
+ public boolean isAcceptableAds()
anton 2017/04/07 07:13:58 isn't used for now (we do filter out aa subscripti
+ {
+ return isAcceptableAds(this.ptr);
+ }
+
@Override
public int hashCode()
{
@@ -85,4 +90,6 @@ public final class Subscription extends JsValue
private final static native boolean isUpdating(long ptr);
private final static native boolean operatorEquals(long ptr, long other);
+
+ private final static native boolean isAcceptableAds(long ptr);
}

Powered by Google App Engine
This is Rietveld