Fix for "smiley after voice input erases the voice part". Bug 2415033

main
Amith Yamasani 2010-02-21 14:22:25 -08:00
parent a9f4b19ca4
commit 8472bb611e
1 changed files with 3 additions and 0 deletions

View File

@ -979,6 +979,9 @@ public class LatinIME extends InputMethodService
} }
public void onText(CharSequence text) { public void onText(CharSequence text) {
if (VOICE_INSTALLED && mVoiceInputHighlighted) {
commitVoiceInput();
}
InputConnection ic = getCurrentInputConnection(); InputConnection ic = getCurrentInputConnection();
if (ic == null) return; if (ic == null) return;
ic.beginBatchEdit(); ic.beginBatchEdit();