diff options
| author | 2024-09-23 11:56:45 -0400 | |
|---|---|---|
| committer | 2024-09-23 11:56:45 -0400 | |
| commit | 2614f026f949a34cea6b4ac610bd6a1b6277ae10 (patch) | |
| tree | 62ffdc607d24ed6bcf52db735474a4e748770c7d /libs/androidfw/AssetsProvider.cpp | |
| parent | 20f915ecfc8d529eb01bc66831dfc38c38f23698 (diff) | |
Reset screenshot timeout immediately
We were only resetting the timeout after the animation finished, meaning
that if a second screenshot was invoked toward the end of the timeout
period, the old timeout could fire (immediately dismissing the
screenshot UI) even though there was a new screenshot visible.
This switches to resetting the timeout as soon as we get the new
screenshot.
Bug: 360043261
Fix: 360043261
Test: ensure that the screenshot UI doesn't time out if there's a second
screenshot, even if it's invoked at the end of the timeout period
Flag: EXEMPT trivial change
Change-Id: I5aee655880fcd0693ef45b18ae09be9c4c4d0d52
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions