Merge "Don't send empty composing texts."

main
Jean Chalard 2014-05-14 09:50:25 +00:00 committed by Android (Google) Code Review
commit 08476dc107
1 changed files with 5 additions and 1 deletions

View File

@ -936,7 +936,11 @@ public final class InputLogic {
} else { } else {
mWordComposer.processEvent(inputTransaction.mEvent); mWordComposer.processEvent(inputTransaction.mEvent);
} }
if (mWordComposer.isComposingWord()) {
mConnection.setComposingText(getTextWithUnderline(mWordComposer.getTypedWord()), 1); mConnection.setComposingText(getTextWithUnderline(mWordComposer.getTypedWord()), 1);
} else {
mConnection.commitText("", 1);
}
inputTransaction.setRequiresUpdateSuggestions(); inputTransaction.setRequiresUpdateSuggestions();
} else { } else {
if (mLastComposedWord.canRevertCommit()) { if (mLastComposedWord.canRevertCommit()) {