Don't notify dead client about losing control

The client cannot handle it, and the server can save time on preparing
the arguments.

Fix: 157694251
Test: Kill the process which has the focused window and see if there is
      the warning log.
Change-Id: I3422eca565f29b8e293ba6628dac74f0a1ef67b9
This commit is contained in:
Tiger Huang
2020-05-30 02:17:26 +08:00
parent 62c68cc44b
commit e1b67cdbf1

View File

@@ -3571,6 +3571,9 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
@Override
public void notifyInsetsControlChanged() {
ProtoLog.d(WM_DEBUG_IME, "notifyInsetsControlChanged for %s ", this);
if (mAppDied || mRemoved) {
return;
}
final InsetsStateController stateController =
getDisplayContent().getInsetsStateController();
try {