Use isGoneForLayoutLw() to check visibility of the window when
evaluating if we need to report resize and new config to the
client in WindowState#onResize, like we do in
WindowState#updateResizingWindowIfNeeded.
Bug:
76011287
Test: ActivityManagerAppConfigurationTests
Change-Id: Icfc2e3a793ca7070191c54a0b9334c3ac293c88d
@Override
void onResize() {
final ArrayList<WindowState> resizingWindows = mService.mResizingWindows;
- if (mHasSurface && !resizingWindows.contains(this)) {
+ if (mHasSurface && !isGoneForLayoutLw() && !resizingWindows.contains(this)) {
if (DEBUG_RESIZE) Slog.d(TAG, "onResize: Resizing " + this);
resizingWindows.add(this);
}