From f2d658d2873469e5d53bc4e97726fbb0169b72f3 Mon Sep 17 00:00:00 2001 From: Headless Date: Tue, 21 Jul 2015 22:30:35 +0300 Subject: [PATCH] fix one line refresh preference --- .../twidere/preference/AutoFixCheckBoxPreference.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/twidere/src/main/java/org/mariotaku/twidere/preference/AutoFixCheckBoxPreference.java b/twidere/src/main/java/org/mariotaku/twidere/preference/AutoFixCheckBoxPreference.java index 372b5600b..c856c4d8a 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/preference/AutoFixCheckBoxPreference.java +++ b/twidere/src/main/java/org/mariotaku/twidere/preference/AutoFixCheckBoxPreference.java @@ -4,6 +4,8 @@ import android.content.Context; import android.content.SharedPreferences; import android.preference.CheckBoxPreference; import android.util.AttributeSet; +import android.view.View; +import android.widget.TextView; public class AutoFixCheckBoxPreference extends CheckBoxPreference { @@ -31,4 +33,13 @@ public class AutoFixCheckBoxPreference extends CheckBoxPreference { } } + @Override + protected void onBindView(View view) { + super.onBindView(view); + + TextView textView = (TextView) view.findViewById(android.R.id.title); + if (textView != null) { + textView.setSingleLine(false); + } + } }