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(); |