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

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

Issue 29441558: Issue 5243 - Clipped text across languages (Closed)
Patch Set: Fixed layout name and bracket in preferences_main.xml Created May 31, 2017, 1:58 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/UrlInputOpenerPreference.java
===================================================================
--- a/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/UrlInputOpenerPreference.java
+++ b/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/UrlInputOpenerPreference.java
@@ -31,12 +31,14 @@
import android.util.AttributeSet;
import android.util.Patterns;
import android.view.KeyEvent;
+import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import org.adblockplus.adblockplussbrowser.R;
+import org.adblockplus.sbrowser.contentblocker.util.PreferenceUtils;
public class UrlInputOpenerPreference extends EditTextPreference implements TextWatcher,
TextView.OnEditorActionListener
@@ -122,6 +124,13 @@
return false;
}
+ @Override
+ protected void onBindView(View view)
+ {
+ super.onBindView(view);
+ PreferenceUtils.setMultilineTitle(view);
+ }
+
public void setIcon(@DrawableRes int iconResId)
{
final Drawable drawable = ContextCompat.getDrawable(getContext(), iconResId);

Powered by Google App Engine
This is Rietveld