summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Beverly <beverlyt@google.com> 2022-07-01 16:22:24 +0000
committer Beverly <beverlyt@google.com> 2022-07-01 16:22:24 +0000
commit56ac2e247553107edb99d243dfbd13284ce25cb6 (patch)
tree2e3ea9b75ffa391e3283fbc7493ebc543dde149e /libs/androidfw/misc.cpp
parentf0e063d10e695626c3d7d74d8857999bc94d9483 (diff)
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
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions