Remove redundant sending app visibility

The super.setClientVisible has the same log and invocation.
This reduces unnecessary IPC to client app.

Bug: 163976519
Test: CtsActivityManagerDeviceTestCases
Change-Id: If1b9d7da167bee3b020c21692b9733f4e50b45b0
This commit is contained in:
Riddle Hsu
2021-09-09 14:10:12 +08:00
parent 08774f2ffc
commit 7eb652d41d

View File

@@ -6206,11 +6206,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
// TODO(shell-transitions): Remove mDeferHidingClient once everything is shell-transitions.
// pip activities should just remain in clientVisible.
if (!clientVisible && mDeferHidingClient) return;
ProtoLog.v(WM_DEBUG_APP_TRANSITIONS,
"setClientVisible: %s clientVisible=%b Callers=%s", this, clientVisible,
Debug.getCallers(5));
super.setClientVisible(clientVisible);
sendAppVisibilityToClients();
}
/**