Implemented RadioButtonPreference
Change-Id: I047b6a95f3001b60e7500f85c25d507e1ca1ad0f
This commit is contained in:
@@ -40,7 +40,7 @@ import java.util.Observable;
|
||||
import java.util.Observer;
|
||||
|
||||
/**
|
||||
* Gesture lock pattern settings.
|
||||
* Location access settings.
|
||||
*/
|
||||
public class LocationSettings extends SettingsPreferenceFragment
|
||||
implements Preference.OnPreferenceChangeListener {
|
||||
@@ -236,25 +236,3 @@ class WrappingSwitchPreference extends SwitchPreference {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class WrappingCheckBoxPreference extends CheckBoxPreference {
|
||||
|
||||
public WrappingCheckBoxPreference(Context context, AttributeSet attrs, int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
}
|
||||
|
||||
public WrappingCheckBoxPreference(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onBindView(View view) {
|
||||
super.onBindView(view);
|
||||
|
||||
TextView title = (TextView) view.findViewById(android.R.id.title);
|
||||
if (title != null) {
|
||||
title.setSingleLine(false);
|
||||
title.setMaxLines(3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user