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: Created Oct. 10, 2017, 12:03 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: 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;
}
}

Powered by Google App Engine
This is Rietveld