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:
Sunny Shao
2023-11-08 15:35:16 +08:00
parent c218eb5d60
commit b0942b61ed
2 changed files with 0 additions and 2 deletions

View File

@@ -37,7 +37,6 @@ public class CustomListPreference extends ListPreference {
public CustomListPreference(Context context, AttributeSet attrs) {
super(context, attrs);
setSingleLineTitle(true);
}
public CustomListPreference(Context context, AttributeSet attrs, int defStyleAttr,

View File

@@ -45,7 +45,6 @@ class SpellCheckerPreference extends CustomListPreference {
public SpellCheckerPreference(final Context context, final SpellCheckerInfo[] scis) {
super(context, null);
setSingleLineTitle(false);
mScis = scis;
setWidgetLayoutResource(R.layout.preference_widget_gear);
CharSequence[] labels = new CharSequence[scis.length];