Consume sync draw handlers if the surface is destroyed
After requesting blast sync, the window may want to remove itself and there won't be a finish draw event. Then the handlers of sync such as seamless rotation keeps waiting until timeout. So simply notify them to clear the state if the window surface is destroyed. Bug: 222048036 Test: atest WindowStateTests#testApplyWithNextDraw Test: 1. Enable auto rotation and launcher is portrait only. 2. Launch Settings while holding device in landscape. 3. Use gesture navigation to swipe up. 4. Click app icon above the task view. 5. Click the task view to back to Settings. 6. The status/nav bars should be visible immediately. (No timeout from SecondaryHomeHandle0) Change-Id: I2c8edf230a149b520032ec132e5df1aaa6683ef8
Loading
Please register or sign in to comment