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

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

Issue 29379647: Issue 4948 - add possibility to not send data depending on connection properties (Closed)
Patch Set: updated dependency to libadblockplus-binaries Created March 28, 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
Index: libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java
diff --git a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java
index 25fa3c98fbd02cad6187c3fac8187f3c46528989..e0fbd539ce6d334aec272008697d646d280cc0fb 100644
--- a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java
+++ b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettings.java
@@ -31,6 +31,7 @@ public class AdblockSettings implements Serializable
private transient Boolean acceptableAdsEnabled;
private List<Subscription> subscriptions;
private List<String> whitelistedDomains;
+ private ConnectionType allowedConnectionType;
public boolean isAdblockEnabled()
{
@@ -72,6 +73,16 @@ public class AdblockSettings implements Serializable
this.whitelistedDomains = whitelistedDomains;
}
+ public ConnectionType getAllowedConnectionType()
+ {
+ return allowedConnectionType;
+ }
+
+ public void setAllowedConnectionType(ConnectionType allowedConnectionType)
+ {
+ this.allowedConnectionType = allowedConnectionType;
+ }
+
@Override
public String toString()
{
@@ -80,6 +91,7 @@ public class AdblockSettings implements Serializable
", acceptableAdsEnabled=" + acceptableAdsEnabled +
", subscriptions:" + (subscriptions != null ? subscriptions.size() : 0) +
", whitelistedDomains:" + (whitelistedDomains != null ? whitelistedDomains.size() : 0) +
+ ", allowedConnectionType=" + (allowedConnectionType != null ? allowedConnectionType.getValue() : "null") +
'}';
}
}

Powered by Google App Engine
This is Rietveld