diff options
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SettingsValues.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SettingsValues.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/SettingsValues.java b/java/src/com/android/inputmethod/latin/SettingsValues.java index 0f522f20f..fb3c03963 100644 --- a/java/src/com/android/inputmethod/latin/SettingsValues.java +++ b/java/src/com/android/inputmethod/latin/SettingsValues.java @@ -188,7 +188,7 @@ public class SettingsValues { private int createCorrectionMode(final InputAttributes inputAttributes) { final boolean shouldAutoCorrect = mAutoCorrectEnabled - && !inputAttributes.mInputTypeNoAutoCorrect; + && (null == inputAttributes || !inputAttributes.mInputTypeNoAutoCorrect); if (mBigramSuggestionEnabled && shouldAutoCorrect) return Suggest.CORRECTION_FULL_BIGRAM; return shouldAutoCorrect ? Suggest.CORRECTION_FULL : Suggest.CORRECTION_NONE; } |