summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2015-02-13 02:06:01 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-02-13 02:06:01 +0000
commit6c477a29bfc604f6dbf90e0d4ac5c99bc0ed2ff7 (patch)
tree984a445b9a7d32fb3565a62e1e460bb82ab88cb1
parent8be3724a06f7b2d28c6664ca11a03f91f97f0972 (diff)
parentec403e8f476c817b87c0ef9297fdb548e8b1e4e4 (diff)
am ec403e8f: Merge "Call startInput on return from sleep mode"
* commit 'ec403e8f476c817b87c0ef9297fdb548e8b1e4e4': Call startInput on return from sleep mode
-rw-r--r--core/java/android/view/inputmethod/InputMethodManager.java24
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 b56378fe6310..325ffdd1654f 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);
}
}
}