Beverly 56ac2e2475 Make sure to cleanup views that couldn't be added
ie: due to BadTokenException or InvalidDisplayException

Previously, only views that were already in the viewhierarchy
before attempted to be re-added would be removed. This makes
sure if the view was newly added, it'll also be removed.
This prevents a memory leak of views.

Test: manually show and cancel multiple toasts,
check the hierachy viewer that no Toast views remain
Fixes: 234694098

Change-Id: I06bbae70c277d0615753edc9ec0a8e7439ad7020
2022-07-01 16:22:24 +00:00
2022-06-22 13:19:14 -07:00
…
…
2022-06-20 09:14:03 +00:00
…
…
…
…
…
…
…
…
…
…
…
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%