diff options
| author | 2023-05-20 03:50:09 +0000 | |
|---|---|---|
| committer | 2023-05-23 17:05:22 +0000 | |
| commit | 3ca99e2ab99eec5c591e3c6ba25b97dff3b823ed (patch) | |
| tree | b040aa87021997b616d50656fe26e78a4d08b0c6 /api/api.go | |
| parent | 57d6975cfbe5b3b70c3f9bc4c7ec350978da6e2b (diff) | |
Fix issue with task snapshots being taken too late
- Currently, a display change while recents transition is playing will
result in the display change being applied prior to the recents
animation playing, which means that the transition-end snapshots are
taken in the wrong display configuration
- Instead, When a display change is requested mid-recents transition,
cancel the current transition and record the snapshots in place
(this matchs legacy recents animation behavior)
- Separately, if the snapshot is requested & recorded mid transition,
then we can ignore the post-transition screenshot (which would be
wrong in the display change case, or just extraneous even in the normal
case where launcher has requested a screenshot itself already).
We do this by comparing the time that the last snapshot was taken
with the start of the transition.
Fixes: 278189494
Test: Go into Overview and rotate the device and observe the task views
Change-Id: I985cd9c852a326027ae3ab4f7ffe837431d1c654
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions