Post maximize menu close runnable when any maximize menu view is exited
Currently, when we exit the maximize menu quickly when hovering, we sometimes do not receive the ACTION_HOVER_EXIT call when the following occurs: 1. User hovers over the maximize menu and we receive an ACTION_HOVER_ENTER. 2. User quickly exits the menu by hovering downwards and hovers over one of the maximize menu's buttons. We recieve a ACTION_HOVER_ENTER and then a ACTION_HOVER_EXIT from the view. 3. Given the small margin below the button and the speed at which the hover occurs, the maximize menu view does not register the hover so we never receive the ACTION_HOVER_EXIT. Therefore, the close menu runnable is never posted. To fix this issue, this change has the listener post the close menu runnable whenever any menu view is exited and removes the callback if there is an ACTION_HOVER_MOVE over any view to assure that we do not prematurely close the menu when we exit a button in the menu without fully exiting the menu. Bug: 327677202 Test: Open the menu by hovering over the maximize button and quickly exit. Change-Id: I43c541c168bb67b2613b96ecf4bb85d245cab061
Loading
Please register or sign in to comment