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

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

Issue 29441558: Issue 5243 - Clipped text across languages (Closed)
Patch Set: Created May 18, 2017, 12:54 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/MoreBlockingPreferenceCategory.java
===================================================================
--- a/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MoreBlockingPreferenceCategory.java
+++ b/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/MoreBlockingPreferenceCategory.java
@@ -21,19 +21,19 @@
import java.util.HashMap;
import java.util.List;
import org.adblockplus.sbrowser.contentblocker.engine.DefaultSubscriptionInfo;
import org.adblockplus.sbrowser.contentblocker.engine.Engine;
import org.adblockplus.sbrowser.contentblocker.engine.EngineService;
import org.adblockplus.sbrowser.contentblocker.engine.SubscriptionInfo;
import org.adblockplus.adblockplussbrowser.R;
+import org.adblockplus.sbrowser.contentblocker.preferences.MultilineCheckBoxPreference;
import android.content.Context;
-import android.preference.CheckBoxPreference;
import android.preference.Preference;
import android.preference.PreferenceCategory;
import android.preference.Preference.OnPreferenceChangeListener;
import android.text.format.DateUtils;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
@@ -107,17 +107,17 @@
final DefaultSubscriptionInfo info = engine.getDefaultSubscriptionInfoForUrl(sub.getUrl());
Integer resInt = URL_TO_RES_ID_MAP.get(sub.getUrl());
if (!(aaLink.equals(sub.getUrl()) || sub.getTitle().startsWith("__"))
&& resInt != null
&& (info == null || info.getPrefixes().isEmpty() || sub.getType() != SubscriptionInfo.Type.ADS))
{
- final CheckBoxPreference cbp = new CheckBoxPreference(this.getContext());
+ final MultilineCheckBoxPreference cbp = new MultilineCheckBoxPreference(this.getContext());
if (sub.isEnabled())
{
final StringBuilder sb = new StringBuilder();
sb.append(this.getContext().getString(R.string.last_update));
sb.append(' ');
final long timestamp = sub.getLastUpdateTime();
if (timestamp > 0)

Powered by Google App Engine
This is Rietveld