Get new surface if it was released from setWindowStopped

If there is no visibility change, when the stopped state
changed from true to false, there is no valid surface to use.

Bug: 80170221
Test: Sample app in bug link
Test: atest ViewRootImplTest
Change-Id: I2324ed32980aae5a3ec2efbd612e6c143c9a0022
Merged-In: I2324ed32980aae5a3ec2efbd612e6c143c9a0022
(cherry picked from commit af2748b28cb8364facf83d995003f36e1070a6cb)
1 file changed