From ba68b15dcee3ec19ce858a55653375e474112fbc Mon Sep 17 00:00:00 2001 From: Karim Benhmida Date: Thu, 21 May 2015 14:55:53 -0700 Subject: [PATCH] Bug 1138635 - Keep keyboard up after voice input. r=liuche --- mobile/android/base/toolbar/ToolbarEditText.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile/android/base/toolbar/ToolbarEditText.java b/mobile/android/base/toolbar/ToolbarEditText.java index 840d7492edc..364c3639da9 100644 --- a/mobile/android/base/toolbar/ToolbarEditText.java +++ b/mobile/android/base/toolbar/ToolbarEditText.java @@ -531,6 +531,10 @@ public class ToolbarEditText extends CustomEditText String text = voiceStrings.get(0); setText(text); setSelection(0, text.length()); + + final InputMethodManager imm = + (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE); + imm.showSoftInput(ToolbarEditText.this, InputMethodManager.SHOW_IMPLICIT); } }); }