Check for window visibility instead of layer

Most likely due to the fact that the trace extracted is too small,
layer assertions fail with Layers trace contained 1 entries, expected at least 2...

Bug: 338179980
Test: atest ResizeAppWithCornerResizeLandscape
Change-Id: I49bc3a1f11b852e473e34c66d94fbab2785b2b6c
1 file changed