summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBen Lin <linben@google.com>2021-05-03 17:21:19 -0700
committerBen Lin <linben@google.com>2021-05-05 13:41:12 -0700
commit150072f401ef3affa558cdca528b4321fba8d6ba (patch)
tree61f63c29b8c2324c1b44563f20693aaad5b665cd /tools/aapt2/java/JavaClassGenerator_test.cpp
parent964a1715ebc11e3ba3ca4c7fb05e479fc207f453 (diff)
PiP: Update menu state AFTER animation is done for show/hide/resize.
When hiding the menu, there is a brief moment where the menu hide animation is running, but the menu is already set as hidden in mMenuState. In that case, other menu operations, such as resizing it, would no-op, since it assumes the menu is not visible to the user anymore. We will update the menu at end of the animation so that before the animation finishes, we will respect that the menu is still in its previous state. This will break apart the callback into two parts - onMenuStateChanging, and onMenuStateChangeFinish. Additionally, PipAnimationController used to only control animating the PiP leash, but not the menu. This CL also adds a handler callback to allow menu controller to apply the transaction. Bug: 185513811 Bug: 186424689 Test: Tap once (show menu), pinch resize - menu resizes & fade along with the resize Test: Resize to smallest size, tap once (so that it grows bigger), and then tap outside region - see that the menu no longer lags behind on fading out. Change-Id: I4432961aff074f4569d5d6d61b0e917511e2cbad
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions