diff options
| author | Jeff Brown <jeffbrown@google.com> | 2015-02-13 02:17:56 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-13 02:17:56 +0000 |
| commit | c2ac80c57f642831ee137c31955784ec84f41aa1 (patch) | |
| tree | efa0ecb03297931330fb0b2e474845b509576814 /core/java/android/view | |
| parent | b1dd6177169478f760ad108c9e90888efb49df8e (diff) | |
| parent | f80fa0b5d9b5567731dc19b4b5fc73816c131910 (diff) | |
| download | frameworks_base-c2ac80c57f642831ee137c31955784ec84f41aa1.zip frameworks_base-c2ac80c57f642831ee137c31955784ec84f41aa1.tar.gz frameworks_base-c2ac80c57f642831ee137c31955784ec84f41aa1.tar.bz2 | |
am f80fa0b5: am 6c477a29: am ec403e8f: Merge "Call startInput on return from sleep mode"
* commit 'f80fa0b5d9b5567731dc19b4b5fc73816c131910':
Call startInput on return from sleep mode
Diffstat (limited to 'core/java/android/view')
| -rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index b56378f..325ffdd 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -494,19 +494,17 @@ public final class InputMethodManager { mIInputContext.finishComposingText(); } catch (RemoteException e) { } - // Check focus again in case that "onWindowFocus" is called before - // handling this message. - if (mServedView != null && mServedView.hasWindowFocus()) { - // "finishComposingText" has been already called above. So we - // should not call mServedInputConnection.finishComposingText here. - // Also, please note that this handler thread could be different - // from a thread that created mServedView. That could happen - // the current activity is running in the system process. - // In that case, we really should not call - // mServedInputConnection.finishComposingText. - if (checkFocusNoStartInput(mHasBeenInactive, false)) { - startInputInner(null, 0, 0, 0); - } + } + // Check focus again in case that "onWindowFocus" is called before + // handling this message. + if (mServedView != null && mServedView.hasWindowFocus()) { + // Please note that this handler thread could be different + // from a thread that created mServedView. That could happen + // the current activity is running in the system process. + // In that case, we really should not call + // mServedInputConnection.finishComposingText. + if (checkFocusNoStartInput(mHasBeenInactive, false)) { + startInputInner(null, 0, 0, 0); } } } |
