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 29412555: Issue 5140 - Add tests for settings storage (Closed)
Patch Set: Created April 14, 2017, 8:02 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 e0fbd539ce6d334aec272008697d646d280cc0fb..01a65da956f560da3c70f6cb562ecbb955408aa7 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
@@ -27,8 +27,8 @@ import java.util.List;
*/
public class AdblockSettings implements Serializable
{
- private transient boolean adblockEnabled;
- private transient Boolean acceptableAdsEnabled;
+ private volatile boolean adblockEnabled;
anton 2017/04/14 08:14:00 actually it's a bug fix! this was meant to be `vol
anton 2017/04/14 08:15:09 though the bug did not appear as we don't serializ
+ private volatile boolean acceptableAdsEnabled;
anton 2017/04/14 08:14:00 decided to make it primitive. The original intenti
private List<Subscription> subscriptions;
private List<String> whitelistedDomains;
private ConnectionType allowedConnectionType;

Powered by Google App Engine
This is Rietveld