summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/inputmethod/InputMethodPreference.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/inputmethod/InputMethodPreference.java')
-rw-r--r--src/com/android/settings/inputmethod/InputMethodPreference.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/inputmethod/InputMethodPreference.java b/src/com/android/settings/inputmethod/InputMethodPreference.java
index c736b2f..f555d21 100644
--- a/src/com/android/settings/inputmethod/InputMethodPreference.java
+++ b/src/com/android/settings/inputmethod/InputMethodPreference.java
@@ -53,6 +53,7 @@ public class InputMethodPreference extends CheckBoxPreference
private final InputMethodManager mImm;
private final Intent mSettingsIntent;
private final boolean mAlwaysChecked;
+ private final boolean mIsSystemIme;
private AlertDialog mDialog = null;
private ImageView mInputMethodSettingsButton;
@@ -69,7 +70,7 @@ public class InputMethodPreference extends CheckBoxPreference
if (isChecked()) {
setChecked(false, true /* save */);
} else {
- if (mAlwaysChecked) {
+ if (mIsSystemIme) {
setChecked(true, true /* save */);
} else {
showSecurityWarnDialog(mImi, InputMethodPreference.this);
@@ -90,6 +91,7 @@ public class InputMethodPreference extends CheckBoxPreference
updateSummary();
mAlwaysChecked = InputMethodAndSubtypeUtil.isAlwaysCheckedIme(
imi, fragment.getActivity(), imiCount);
+ mIsSystemIme = InputMethodAndSubtypeUtil.isSystemIme(imi);
if (mAlwaysChecked) {
setEnabled(false);
}