Adds a timeout for OverviewCommandHelper commands (3/3)
We had several bugs in the past months related to recents button not displaying Overview when using 3 button navigation. For some of the bug reports, we noticed the OverviewCommandHelper pending commands list got stuck and stopped processing the next commands in the list. Sometimes, the pending commands list was cleared while some command was being processed, allowing newer commands to be executed while another command is already running. This resulted in the second callback never returning and inconsistent states for OverviewCommandHelper and RecentsView. Our logs showed OverviewCommandHelper often got stuck and didn't finish the commands correctly. To mitigate these issues we updated the following behaviors: - Implemented a timeout to process the commands in the queue. If the callback doesn't return in a given time, it will drop that execution and process the next one in the queue. - Fix clearPendingCommands to clear only the pending commands from the queue, and not the running command. Bug: 352046797 Fix: 351122926 Fix: 361768912 Flag: EXEMPT bugfix. Test: OverviewCommandHelperTest Change-Id: I47adf0c54dcbaef63d9b72055e000c26114e96e1
Loading
Please register or sign in to comment