Merge "Skip notifying change without visibility change" into udc-dev

This commit is contained in:
Riddle Hsu
2023-03-15 10:05:42 +00:00
committed by Android (Google) Code Review

View File

@@ -5225,6 +5225,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
Slog.w(TAG_WM, "Attempted to set visibility of non-existing app token: " + token);
return;
}
if (visible == mVisibleRequested && visible == mVisible
&& mTransitionController.isShellTransitionsEnabled()) {
// For shell transition, it is no-op if there is no state change.
return;
}
if (visible) {
mDeferHidingClient = false;
}