diff options
| author | 2024-10-01 09:48:46 -0400 | |
|---|---|---|
| committer | 2024-10-01 10:00:19 -0400 | |
| commit | c53221c9fbc353f3afede2da4298c5ada99a2509 (patch) | |
| tree | 2cfd5da9d80c6c880c4c901429a3757165f1b9f0 /libs/androidfw/ResourceTimer.cpp | |
| parent | 20f915ecfc8d529eb01bc66831dfc38c38f23698 (diff) | |
Reset screenshot view correctly at animation start
During the dismissal animation, we fade out the screenshot view and
translate it off screen. However, we never reset these values, so for
any successive screenshots during the same screenshot process
instantiation the screenshot view is effectively invisible (since it's
both alpha=0 and translated offscreen).
Normally, this is irrelevant since the screenshot process is destroyed
once dismissal is complete (and restarted, with correctly reset
alpha/translationX properties, for any later screenshots). However due
to an unrelated bug (see ag/29549611) it's possible to enter a state
where the screenshot process never gets destroyed, and these parameters
are never reset.
This change resets the parameters so that even if the screenshot process
remains up, the animation is correctly visible.
Bug: 370722626
Fix: 370722626
Test: manual -- take a screenshot, then take another screenshot using a
different invocation method while the UI is still up, wait for
dismissal, and verify that further screenshots are correctly visible
Flag: EXEMPT trivial fix
Change-Id: Ia92afc43919ddda8d8329714e332456943aebe97
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions