summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Miranda Kephart <mkephart@google.com> 2024-04-26 09:29:06 -0400
committer Miranda Kephart <mkephart@google.com> 2024-05-23 20:35:53 +0000
commit84326475bb8519088d8af41b3450783302f3bb6c (patch)
tree20e1c6714037d0ab594de9f14ccb424347a3dee9 /api/api.go
parent351d100b5bbd4cd7956b4dad1b96eefb76c3b14e (diff)
Post screenshot removeWindow call if necessary
It's possible to hit the removeWindow call at a point where we've requested that the screenshot view be attached to the window, but it hasn't actually been added yet. In this case, the removeWindow call does nothing (since there's no actual view to detach), but then a frame or two later the view is attached as requested, and never removed. This change checks in the removeWindow method whether we've requested the view be attached, and if so waits for it to be attached and then detaches it. Bug: 329659738 Bug: 337229903 Test: manual, by taking many screenshots in succession + artificially increasing the delay between requesting attachment and attaching the view Flag: NONE Change-Id: I5e40e61994cde251d6c819961d88c5b0b77d9eff
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions