Always on the valid system default ime
Bug: 6422390 Change-Id: I9af4065e4b9f9332f3b0db168dea5546727d5951
This commit is contained in:
@@ -51,7 +51,7 @@ public class InputMethodPreference extends CheckBoxPreference
|
||||
private final InputMethodInfo mImi;
|
||||
private final InputMethodManager mImm;
|
||||
private final Intent mSettingsIntent;
|
||||
private final boolean mIsSystemIme;
|
||||
private final boolean mAlwaysChecked;
|
||||
|
||||
private AlertDialog mDialog = null;
|
||||
private ImageView mInputMethodSettingsButton;
|
||||
@@ -68,7 +68,7 @@ public class InputMethodPreference extends CheckBoxPreference
|
||||
if (isChecked()) {
|
||||
setChecked(false);
|
||||
} else {
|
||||
if (mIsSystemIme) {
|
||||
if (mAlwaysChecked) {
|
||||
setChecked(true);
|
||||
} else {
|
||||
showSecurityWarnDialog(mImi, InputMethodPreference.this);
|
||||
@@ -87,9 +87,9 @@ public class InputMethodPreference extends CheckBoxPreference
|
||||
mImm = imm;
|
||||
mImi = imi;
|
||||
updateSummary();
|
||||
mIsSystemIme = InputMethodAndSubtypeUtil.isSystemIme(imi);
|
||||
final boolean isAuxIme = InputMethodAndSubtypeUtil.isAuxiliaryIme(imi);
|
||||
if (imiCount <= 1 || (mIsSystemIme && !isAuxIme)) {
|
||||
mAlwaysChecked = InputMethodAndSubtypeUtil.isAlwaysCheckedIme(
|
||||
imi, fragment.getActivity(), imiCount);
|
||||
if (mAlwaysChecked) {
|
||||
setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user