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

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

Issue 29379647: Issue 4948 - add possibility to not send data depending on connection properties (Closed)
Patch Set: updated dependency to binaries, updated comment for allowed connection type Created March 30, 2017, 2:12 p.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/AdblockSettingsStorage.java
diff --git a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettingsStorage.java b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettingsStorage.java
index dd3cc1f334c36c86fb7d9c3ed2585933cd74d64e..77387929b9983f7ef521792fccaaa90f4291d6d8 100644
--- a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettingsStorage.java
+++ b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockSettingsStorage.java
@@ -57,6 +57,8 @@ public abstract class AdblockSettingsStorage
// read actual values from adblock engine
settings.setAdblockEnabled(adblockEngine.isEnabled());
settings.setAcceptableAdsEnabled(adblockEngine.isAcceptableAdsEnabled());
+ String allowedConnectionTypeValue = adblockEngine.getFilterEngine().getAllowedConnectionType();
+ settings.setAllowedConnectionType(ConnectionType.findByValue(allowedConnectionTypeValue));
// we need to filter out exceptions subscription to show languages subscriptions only
Subscription[] listedSubscriptions = adblockEngine.getListedSubscriptions();

Powered by Google App Engine
This is Rietveld