summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Miranda Kephart <mkephart@google.com> 2022-12-12 11:09:07 -0500
committer Miranda Kephart <mkephart@google.com> 2022-12-12 11:09:07 -0500
commit6e830364a6053e73465fafc43554cbd13265deb3 (patch)
treeb38a7a79968d8336cae2589a83bea962cd0dd359 /libs/androidfw/StringPool.cpp
parentba0a4d1647daaa16a53ee9e3efe15ece246ed50c (diff)
Switch to "quiet" screenshot success when window destroyed
Currently, if the screenshot UI is dismissed before the screenshot finishes saving, we'll get a spurious "SCREENSHOT_INTERACTION_TIMEOUT" log. This is because the screenshot saving triggers "showUiOnActionsReady", which updates the UI and resets the timeout. Updating the UI is a no-op in this situation since the window/view are no longer attached, but the timeout is reset, causing a timeout log six seconds later. It doesn't make any sense to try to show UI after dismissal, so we should just do the same thing we do for the "old" screenshot during successive screenshots and save silently. Bug: 262242456 Fix: 262242456 Test: make statsd_testdrive && $ANDROID_HOST_OUT/bin/statsd_testdrive 90 Change-Id: I0de70d839502c7799da8a8b31e69cfbca0955bd4
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions