Android: Try to hide the sw keyboard on finishComposingText.

finishComposingText is called when the composing text is finished also
when the sw keyboard is hidden.

Task-number: QTBUG-37631
Change-Id: I4f4e90e60ac3f89784755b591f578e07fdbfdd2a
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
BogDan Vatra 2014-03-20 17:23:14 +02:00 committed by The Qt Project
parent d9f5200fb8
commit 80151389d6

View File

@ -128,7 +128,7 @@ public class QtInputConnection extends BaseInputConnection
if (closing && m_inputState == InputStates.Hiding)
return;
if (closing && m_inputState == InputStates.FinishComposing && m_view.getActivityDelegate().isSoftwareKeyboardVisible()) {
if (closing && m_view.getActivityDelegate().isSoftwareKeyboardVisible()) {
m_view.postDelayed(new HideKeyboardRunnable(this), 100);
m_inputState = InputStates.Hiding;
} else {