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

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

Issue 30046562: Issue 7458 - Duplicate entries for EasyPrivacy and Fanboy's Social Blocking List
Patch Set: Created April 16, 2019, 2:06 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/base/java/org/adblockplus/browser/SubscriptionPreferenceCategory.java
===================================================================
--- a/mobile/android/base/java/org/adblockplus/browser/SubscriptionPreferenceCategory.java
+++ b/mobile/android/base/java/org/adblockplus/browser/SubscriptionPreferenceCategory.java
@@ -151,17 +151,20 @@
if (entries.isEmpty())
{
this.addPreference(this.createDisabledPreference(titleId, summaryId));
}
else
{
for (SubscriptionContainer.Subscription e : entries)
{
- this.addPreference(this.createEnabledCheckBox(e));
+ if(!MoreSubscriptionsPreferenceGroup.BUILTIN_URLS.contains(e.url))
jens 2019/04/17 09:39:22 The white space after the if is missing
+ {
+ this.addPreference(this.createEnabledCheckBox(e));
+ }
}
}
}
private void showProgressDialog()
{
this.progressDialog = new ProgressDialog(this.getContext());
this.progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);

Powered by Google App Engine
This is Rietveld