diff options
| author | 2023-02-21 17:23:52 -0800 | |
|---|---|---|
| committer | 2023-02-22 10:01:28 -0800 | |
| commit | b0514b19d841d64f22274cac7948f81c1bfa68fc (patch) | |
| tree | 1d20cfbbc99d59d5e9621c30fc7fe2b7e58a18f3 /api/api.go | |
| parent | 6d61c09d3606dd47759e5f4d1f69c5ea0795bcdc (diff) | |
Handle invalid dream window in DreamOverlayService.
It is possible for a dream's window to become invalid shortly after
starting. For example, another dream might begin almost immediately
following. In these cases, it is possible that the DreamOverlayService
might not process the start event until after the dream window becomes
invalid. If not handled properly, an BadTokenException will cause
SystemUI to crash.
This changelist addresses the issue by catching the exception and
tearing down the overlay.
Test: atest DreamOverlayServiceTest
Fixes: 268209056
Change-Id: I25ff6ff58e6a612ea609a4541219bea149eeace9
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions