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 |
@@ -15,16 +15,17 @@ |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
package org.adblockplus.browser; |
import java.util.List; |
import org.mozilla.gecko.R; |
+import org.mozilla.gecko.preferences.CustomCheckBoxPreference; |
import org.mozilla.gecko.util.ThreadUtils; |
import android.app.ProgressDialog; |
import android.content.Context; |
import android.preference.CheckBoxPreference; |
import android.preference.Preference; |
import android.preference.PreferenceCategory; |
import android.util.AttributeSet; |
@@ -106,17 +107,17 @@ public class SubscriptionPreferenceCateg |
preference.setShouldDisableView(true); |
preference.setSelectable(false); |
return preference; |
} |
private CheckBoxPreference createEnabledCheckBox( |
final SubscriptionContainer.Subscription subscription) |
{ |
- final CheckBoxPreference cbp = new CheckBoxPreference(this.getContext()); |
+ final CheckBoxPreference cbp = new CustomCheckBoxPreference(this.getContext()); |
cbp.setTitle(subscription.specialization); |
cbp.setSummary(subscription.title); |
cbp.setChecked(true); |
cbp.setKey(subscription.url); |
cbp.setPersistent(false); |
cbp.setChecked(subscriptionContainer.isSubscriptionListed(subscription.url)); |
cbp.setOnPreferenceChangeListener(this.checkBoxChangeListener); |
return cbp; |