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

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

Issue 29435570: Issue 5205 - Add Subscription.isDisabled() (Closed)
Patch Set: removed one more [unnecessary] casting Created May 26, 2017, 5:50 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
« no previous file with comments | « libadblockplus-android/jni/JniSubscription.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93266419b5571818094988c5c5255b6678fe54e6..fa7012b1996d4057fc768042507f6b5391a32171 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/Subscription.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/Subscription.java
@@ -30,6 +30,16 @@ public final class Subscription extends JsValue
super(ptr);
}
+ public boolean isDisabled()
+ {
+ return isDisabled(this.ptr);
+ }
+
+ public void setDisabled(boolean disabled)
+ {
+ setDisabled(this.ptr, disabled);
+ }
+
public boolean isListed()
{
return isListed(this.ptr);
@@ -79,6 +89,10 @@ public final class Subscription extends JsValue
private final static native void registerNatives();
+ private final static native boolean isDisabled(long ptr);
+
+ private final static native void setDisabled(long ptr, boolean disabled);
+
private final static native boolean isListed(long ptr);
private final static native void addToList(long ptr);
« no previous file with comments | « libadblockplus-android/jni/JniSubscription.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld