Fix Language & Input Settings layouts padding
- make padding consistent with the rest of the Settings App See bug: #15384992 Setting Dashboard - padding updates Change-Id: I9aab93e6b18d0fa966e79e93a334b339fa2ca20a
This commit is contained in:
@@ -37,8 +37,22 @@ public class CheckBoxAndSettingsPreference extends CheckBoxPreference {
|
||||
private ImageView mSettingsButton;
|
||||
private Intent mSettingsIntent;
|
||||
|
||||
public CheckBoxAndSettingsPreference(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public CheckBoxAndSettingsPreference(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
public CheckBoxAndSettingsPreference(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
this(context, attrs, defStyleAttr, 0);
|
||||
}
|
||||
|
||||
public CheckBoxAndSettingsPreference(Context context, AttributeSet attrs, int defStyleAttr,
|
||||
int defStyleRes) {
|
||||
super(context, attrs, defStyleAttr, defStyleRes);
|
||||
|
||||
setLayoutResource(R.layout.preference_inputmethod);
|
||||
setWidgetLayoutResource(R.layout.preference_inputmethod_widget);
|
||||
}
|
||||
|
@@ -21,10 +21,24 @@ import android.util.AttributeSet;
|
||||
import android.view.textservice.TextServicesManager;
|
||||
|
||||
public class SpellCheckersPreference extends CheckBoxAndSettingsPreference {
|
||||
private final TextServicesManager mTsm;
|
||||
private TextServicesManager mTsm;
|
||||
|
||||
public SpellCheckersPreference(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public SpellCheckersPreference(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
public SpellCheckersPreference(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
this(context, attrs, defStyleAttr, 0);
|
||||
}
|
||||
|
||||
public SpellCheckersPreference(Context context, AttributeSet attrs, int defStyleAttr,
|
||||
int defStyleRes) {
|
||||
super(context, attrs, defStyleAttr, defStyleRes);
|
||||
|
||||
mTsm = (TextServicesManager) context.getSystemService(
|
||||
Context.TEXT_SERVICES_MANAGER_SERVICE);
|
||||
setChecked(mTsm.isSpellCheckerEnabled());
|
||||
|
Reference in New Issue
Block a user