Index: mobile/android/thirdparty/org/adblockplus/browser/SubscriptionPreferenceCategory.java |
=================================================================== |
--- a/mobile/android/thirdparty/org/adblockplus/browser/SubscriptionPreferenceCategory.java |
+++ b/mobile/android/thirdparty/org/adblockplus/browser/SubscriptionPreferenceCategory.java |
@@ -183,17 +183,17 @@ public class SubscriptionPreferenceCateg |
@Override |
public boolean onPreferenceChange(Preference preference, Object newValue) |
{ |
if (preference instanceof CheckBoxPreference && newValue instanceof Boolean) |
{ |
showProgressDialog(); |
final CheckBoxPreference cbp = (CheckBoxPreference) preference; |
- final boolean enable = ((Boolean) newValue).booleanValue(); |
+ final boolean enable = (Boolean) newValue; |
SubscriptionPreferenceCategory.subscriptionContainer.changeSubscriptionState( |
cbp.getKey(), |
enable); |
} |
return true; |
} |
} |