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

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

Issue 29505609: Issue 5469 - Clipped text inside 'More blocking options' setting (Closed)
Patch Set: Created Aug. 4, 2017, 9:59 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
« no previous file with comments | « mobile/android/thirdparty/org/adblockplus/browser/MoreSubscriptionsPreferenceGroup.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « mobile/android/thirdparty/org/adblockplus/browser/MoreSubscriptionsPreferenceGroup.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld