mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2024-12-24 15:30:46 +01:00
Merge pull request #196 from skv-headless/fix-one-line-prefix
fix one line refresh preference
This commit is contained in:
commit
32493e8c80
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user