commit | 12df10113faa034cdb9b2cdcad008515ffbc36eb | [log] [tgz] |
---|---|---|
author | Hongwei Wang <hwwang@google.com> | Wed Dec 01 16:26:42 2021 -0800 |
committer | Hongwei Wang <hwwang@google.com> | Wed Dec 01 16:26:42 2021 -0800 |
tree | 4bc83fc369a68e2f192e1cebf590bfb3705cbe48 | |
parent | 8653f2eeb55fdd3848359d3b41f14934e4924c29 [diff] |
Ensure at most one pip-dismiss-overlay PipDismissTargetHandler#init can be called multiple times, whenever a new dismiss view (and its container) is created, remove the old one from view hierarchy first. Bug: 207495181 Test: manual, change wallpaper multiple times to trigger multiple init calls in PipDismissTargetHandler and ensures there is at most one pip-dismiss-overlay in the view hierarchy. Change-Id: I4a0e058d1d002a6420974f41b94b70316d3444a3