Merge "Call startInput on return from sleep mode"
This commit is contained in:
@@ -494,12 +494,11 @@ public final class InputMethodManager {
|
|||||||
mIInputContext.finishComposingText();
|
mIInputContext.finishComposingText();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Check focus again in case that "onWindowFocus" is called before
|
// Check focus again in case that "onWindowFocus" is called before
|
||||||
// handling this message.
|
// handling this message.
|
||||||
if (mServedView != null && mServedView.hasWindowFocus()) {
|
if (mServedView != null && mServedView.hasWindowFocus()) {
|
||||||
// "finishComposingText" has been already called above. So we
|
// Please note that this handler thread could be different
|
||||||
// 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
|
// 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
|
||||||
@@ -509,7 +508,6 @@ public final class InputMethodManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case MSG_SEND_INPUT_EVENT: {
|
case MSG_SEND_INPUT_EVENT: {
|
||||||
|
|||||||
Reference in New Issue
Block a user