From bfabac449d0b529ee22887aa198a34fdf04b3beb Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Thu, 18 Sep 2014 14:08:21 +0900 Subject: [PATCH] Suppress voice input key on textWebEmailAddress field Bug: 17486589 Change-Id: Ie9bf9266ee423b7e03cebcaa5f522accdd1a7802 --- java/src/com/android/inputmethod/latin/InputAttributes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/InputAttributes.java b/java/src/com/android/inputmethod/latin/InputAttributes.java index 9df3a2a9d..fecb0ef94 100644 --- a/java/src/com/android/inputmethod/latin/InputAttributes.java +++ b/java/src/com/android/inputmethod/latin/InputAttributes.java @@ -104,7 +104,7 @@ public final class InputAttributes { mShouldInsertSpacesAutomatically = InputTypeUtils.isAutoSpaceFriendlyType(inputType); final boolean noMicrophone = mIsPasswordField - || InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS == variation + || InputTypeUtils.isEmailVariation(variation) || InputType.TYPE_TEXT_VARIATION_URI == variation || hasNoMicrophoneKeyOption(); mShouldShowVoiceInputKey = !noMicrophone;