Fix ListPreference title cutted off problem
- Remove the code of the setSingleLineTitle. - Remove the additional code in the SpellCheckerPreference. Fixes: 306795084 Test: manual test Change-Id: Ib279496b9456cab9df9c542b8fee455d28ef01d9
This commit is contained in:
@@ -37,7 +37,6 @@ public class CustomListPreference extends ListPreference {
|
|||||||
|
|
||||||
public CustomListPreference(Context context, AttributeSet attrs) {
|
public CustomListPreference(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
setSingleLineTitle(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public CustomListPreference(Context context, AttributeSet attrs, int defStyleAttr,
|
public CustomListPreference(Context context, AttributeSet attrs, int defStyleAttr,
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ class SpellCheckerPreference extends CustomListPreference {
|
|||||||
|
|
||||||
public SpellCheckerPreference(final Context context, final SpellCheckerInfo[] scis) {
|
public SpellCheckerPreference(final Context context, final SpellCheckerInfo[] scis) {
|
||||||
super(context, null);
|
super(context, null);
|
||||||
setSingleLineTitle(false);
|
|
||||||
mScis = scis;
|
mScis = scis;
|
||||||
setWidgetLayoutResource(R.layout.preference_widget_gear);
|
setWidgetLayoutResource(R.layout.preference_widget_gear);
|
||||||
CharSequence[] labels = new CharSequence[scis.length];
|
CharSequence[] labels = new CharSequence[scis.length];
|
||||||
|
|||||||
Reference in New Issue
Block a user