* commit '6c477a29bfc604f6dbf90e0d4ac5c99bc0ed2ff7': Call startInput on return from sleep mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user