bugfix in the keyboard translation

This commit is contained in:
kr.angelov
2014-04-03 06:14:15 +00:00
parent b84bd78ab9
commit f4cd152e6f

View File

@@ -374,7 +374,7 @@ public class TranslatorInputMethodService extends InputMethodService
mTranslator.setSourceLanguage(newSource);
handleChangeSourceLanguage(newSource);
} else if (primaryCode == TranslatorKeyboard.KEYCODE_TARGET_LANGUAGE) {
String translation = mTranslator.translate(mComposingText.toString());
String translation = mTranslator.translate(getComposingString());
getCurrentInputConnection().commitText(translation, 1);
return;
} else if (primaryCode < TranslatorKeyboard.KEYCODE_TARGET_LANGUAGE &&