Don't update configuration for invisible windows

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
1 file changed