fix one line refresh preference

This commit is contained in:
Headless 2015-07-21 22:30:35 +03:00
parent 533d8ed0ae
commit f2d658d287
1 changed files with 11 additions and 0 deletions

View File

@ -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);
}
}
}