Merge "Call onInputConnectionClosed synchronously" into udc-dev
This commit is contained in:
@@ -405,21 +405,15 @@ final class RemoteInputConnectionImpl extends IRemoteInputConnection.Stub {
|
||||
}
|
||||
if (handler.getLooper().isCurrentThread()) {
|
||||
servedView.onInputConnectionClosedInternal();
|
||||
final ViewRootImpl viewRoot = servedView.getViewRootImpl();
|
||||
if (viewRoot != null) {
|
||||
viewRoot.getHandwritingInitiator().onInputConnectionClosed(servedView);
|
||||
}
|
||||
} else {
|
||||
handler.post(servedView::onInputConnectionClosedInternal);
|
||||
handler.post(() -> {
|
||||
final ViewRootImpl viewRoot = servedView.getViewRootImpl();
|
||||
if (viewRoot != null) {
|
||||
viewRoot.getHandwritingInitiator()
|
||||
.onInputConnectionClosed(servedView);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
final ViewRootImpl viewRoot = servedView.getViewRootImpl();
|
||||
if (viewRoot != null) {
|
||||
viewRoot.getHandwritingInitiator().onInputConnectionClosed(servedView);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user