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

Unified Diff: mobile/android/thirdparty/org/adblockplus/browser/SubscriptionPreferenceCategory.java

Issue 29572644: Noissue - Lint adjustments
Patch Set: Removing shared prefs editor commit() to apply() change Created Oct. 12, 2017, 9:14 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
« no previous file with comments | « mobile/android/thirdparty/org/adblockplus/browser/SubscriptionContainer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « mobile/android/thirdparty/org/adblockplus/browser/SubscriptionContainer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld