summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2023-06-20 13:14:57 -0700
committer Mady Mellor <madym@google.com> 2023-07-07 18:43:44 +0000
commit96c2b131230db84221c23c07ac4853ed02fc6461 (patch)
tree4a080f4078cb884bd69940256d03497a7f9395bd /libs/androidfw/ObbFile.cpp
parent89200d72d4bcf6adee3b8b34f4af986622afd639 (diff)
Fix how taskview is used by controlsUi
When controlsUi is dismissed, it calls taskview#release, which should only be done when the task & taskview are done being used which isn't really the case until the task is explicitly removed. Since the controlsUi is going away, the taskview surface gets destroyed which triggers a transition to move its task TO_BACK, however, because release has been called, we have no reference to the taskview in TaskViewTransitions, so the TO_BACK transition falls to the default transition handler which results in the incorrect animation. To fix this, instead of calling taskview#release when the controls ui is being dismissed, call taskview#removeTask to actually remove the task. In the onTaskRemovalStarted callback, we can then clean up the taskview. Test: manual - open controls panel and swipe up to home => observe that there isn't a second animation of the task animating away Bug: 282102652 Change-Id: Ie40d078e4a05d3323a3364b82f6af171ae97181c
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions