commit | b088dbba9e0c7b8805bf50d240736eff7519e644 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Tue Jun 30 13:21:53 2020 -0700 |
committer | Ben Lin <linben@google.com> | Wed Jul 01 14:56:38 2020 -0700 |
tree | db9b0d80d718227853b666508acc56c8c77c20e4 | |
parent | 68823dfbed3b7acfb5b932f8cab60c4a806ff988 [diff] |
Run HOVER_EXIT event only if there's no BUTTON_PRESS event after. When a mouse click happens, a HOVER_EXIT prceeds a BUTTON_PRESS MotionEvent. This ends up causing the menu to fade away. We will check for whether there's a BUTTON_PRESS event immediately afterward, and only run hideMenu() after a certain timeout. Bug: 160245414 Test: Clicking on items on the PIP menu works again Change-Id: If06e9b51d2fa47735472f48314a9d5b4b146157b