diff options
author | 2014-09-13 00:42:19 +0000 | |
---|---|---|
committer | 2014-09-13 00:42:19 +0000 | |
commit | 99a56b94c7a4e88862167df382f9f9c0b1b94084 (patch) | |
tree | 870b065eab971973424475f64820342763dcd5f3 /java/src/com/android/inputmethod/latin/InputAttributes.java | |
parent | a2e84da9cc287a3cae40641dde1fff46d343b933 (diff) | |
parent | 8ed81f9fd74d648fe0adc9ffc0bd2d247105ebe5 (diff) | |
download | latinime-99a56b94c7a4e88862167df382f9f9c0b1b94084.tar.gz latinime-99a56b94c7a4e88862167df382f9f9c0b1b94084.tar.xz latinime-99a56b94c7a4e88862167df382f9f9c0b1b94084.zip |
am 8ed81f9f: resolved conflicts for merge of 8e9385cc to master
* commit '8ed81f9fd74d648fe0adc9ffc0bd2d247105ebe5':
Only do double-space-period on real text fields.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/InputAttributes.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/InputAttributes.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/InputAttributes.java b/java/src/com/android/inputmethod/latin/InputAttributes.java index 782e18255..50a6e48e3 100644 --- a/java/src/com/android/inputmethod/latin/InputAttributes.java +++ b/java/src/com/android/inputmethod/latin/InputAttributes.java @@ -49,6 +49,7 @@ public final class InputAttributes { * {@link com.android.inputmethod.latin.settings.SettingsValues#mGestureFloatingPreviewTextEnabled} */ final public boolean mDisableGestureFloatingPreviewText; + final public boolean mIsGeneralTextInput; final private int mInputType; final private EditorInfo mEditorInfo; final private String mPackageNameForPrivateImeOptions; @@ -84,6 +85,7 @@ public final class InputAttributes { mShouldInsertSpacesAutomatically = false; mShouldShowVoiceInputKey = false; mDisableGestureFloatingPreviewText = false; + mIsGeneralTextInput = false; return; } // inputClass == InputType.TYPE_CLASS_TEXT @@ -128,6 +130,15 @@ public final class InputAttributes { || (!flagAutoCorrect && !flagMultiLine); mApplicationSpecifiedCompletionOn = flagAutoComplete && isFullscreenMode; + + // If we come here, inputClass is always TYPE_CLASS_TEXT + mIsGeneralTextInput = InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS != variation + && InputType.TYPE_TEXT_VARIATION_PASSWORD != variation + && InputType.TYPE_TEXT_VARIATION_PHONETIC != variation + && InputType.TYPE_TEXT_VARIATION_URI != variation + && InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD != variation + && InputType.TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS != variation + && InputType.TYPE_TEXT_VARIATION_WEB_PASSWORD != variation; } public boolean isTypeNull() { |