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

Unified Diff: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/ListedSubscriptionsPreferenceCategory.java

Issue 29453722: Noissue - Lint adjustments and optimizations (Closed)
Patch Set: Adjusting HashSet initialization in Subscription Created July 19, 2017, 4:40 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: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/ListedSubscriptionsPreferenceCategory.java
===================================================================
--- a/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/ListedSubscriptionsPreferenceCategory.java
+++ b/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/ListedSubscriptionsPreferenceCategory.java
@@ -178,15 +178,15 @@ public class ListedSubscriptionsPreferen
}
}
}
@Override
public boolean onPreferenceChange(final Preference preference, final Object newValue)
{
final String id = preference.getKey();
- final boolean enabled = ((Boolean) newValue).booleanValue();
+ final boolean enabled = (Boolean) newValue;
this.engine.changeSubscriptionState(id, enabled);
return true;
}
}

Powered by Google App Engine
This is Rietveld