am 902cefb6: am 97ad4968: am bfabac44: Suppress voice input key on textWebEmailAddress field

* commit '902cefb6635053b682a917259eb5a964a17506fd':
  Suppress voice input key on textWebEmailAddress field
This commit is contained in:
Tadashi G. Takaoka 2014-09-18 06:15:41 +00:00 committed by Android Git Automerger
commit e7c2d1c99c

View file

@ -112,7 +112,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;