Bug 1138635 - Keep keyboard up after voice input. r=liuche

This commit is contained in:
Karim Benhmida 2015-05-21 14:55:53 -07:00
parent 7ade644db9
commit de8173f084

View File

@ -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);
}
});
}