Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ab8ed02c authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 4fa92e4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment