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 |
@@ -92,25 +92,25 @@ public class SubscriptionPreferenceCateg |
{ |
SubscriptionPreferenceCategory.this.initEntries(); |
} |
}); |
} |
}); |
} |
- private CheckBoxPreference createDisabledCheckBox(final int titleId, final int summaryId) |
+ private Preference createDisabledPreference(final int titleId, final int summaryId) |
{ |
- final CheckBoxPreference cbp = new CheckBoxPreference(this.getContext()); |
- cbp.setTitle(titleId); |
- cbp.setSummary(summaryId); |
- cbp.setEnabled(false); |
- cbp.setShouldDisableView(true); |
- cbp.setSelectable(false); |
- return cbp; |
+ final Preference preference = new Preference(this.getContext()); |
+ preference.setTitle(titleId); |
+ preference.setSummary(summaryId); |
+ preference.setEnabled(false); |
+ preference.setShouldDisableView(true); |
+ preference.setSelectable(false); |
+ return preference; |
} |
private CheckBoxPreference createEnabledCheckBox( |
final SubscriptionContainer.Subscription subscription) |
{ |
final CheckBoxPreference cbp = new CheckBoxPreference(this.getContext()); |
cbp.setTitle(subscription.specialization); |
cbp.setSummary(subscription.title); |
@@ -144,17 +144,17 @@ public class SubscriptionPreferenceCateg |
private void initEntries(final int titleId, final int summaryId, boolean enabled) |
{ |
this.removeAll(); |
final List<SubscriptionContainer.Subscription> entries = |
subscriptionContainer.getSubscriptions(enabled); |
if (entries.isEmpty()) |
{ |
- this.addPreference(this.createDisabledCheckBox(titleId, summaryId)); |
+ this.addPreference(this.createDisabledPreference(titleId, summaryId)); |
} |
else |
{ |
for (SubscriptionContainer.Subscription e : entries) |
{ |
this.addPreference(this.createEnabledCheckBox(e)); |
} |
} |