Merge "Call startInput on return from sleep mode"
This commit is contained in:
@@ -494,19 +494,17 @@ public final class InputMethodManager {
|
|||||||
mIInputContext.finishComposingText();
|
mIInputContext.finishComposingText();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
}
|
}
|
||||||
// Check focus again in case that "onWindowFocus" is called before
|
}
|
||||||
// handling this message.
|
// Check focus again in case that "onWindowFocus" is called before
|
||||||
if (mServedView != null && mServedView.hasWindowFocus()) {
|
// handling this message.
|
||||||
// "finishComposingText" has been already called above. So we
|
if (mServedView != null && mServedView.hasWindowFocus()) {
|
||||||
// should not call mServedInputConnection.finishComposingText here.
|
// Please note that this handler thread could be different
|
||||||
// Also, please note that this handler thread could be different
|
// from a thread that created mServedView. That could happen
|
||||||
// from a thread that created mServedView. That could happen
|
// the current activity is running in the system process.
|
||||||
// the current activity is running in the system process.
|
// In that case, we really should not call
|
||||||
// In that case, we really should not call
|
// mServedInputConnection.finishComposingText.
|
||||||
// mServedInputConnection.finishComposingText.
|
if (checkFocusNoStartInput(mHasBeenInactive, false)) {
|
||||||
if (checkFocusNoStartInput(mHasBeenInactive, false)) {
|
startInputInner(null, 0, 0, 0);
|
||||||
startInputInner(null, 0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user