summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2020-06-02 18:45:20 -0700
committerchaviw <chaviw@google.com>2020-06-04 08:57:08 -0700
commit9118c9b573a743a1526beb7a0de48174ee561af2 (patch)
tree07175b2542bda472bf2f59dbef151d88e12473c7 /tools/aapt2/java/JavaClassGenerator.cpp
parent28fdf609dcce30f9825006d60f6a45b4cc4d88dd (diff)
Call preserveSurfaces when detaching children.
When WM calls detachChildren, it means the app is exiting and we temporarily want to keep the children around so they aren't removed during the animation. If the app is quickly relaunched, the children will remain detached and will not be removed. Therefore, add a call to preserveSurfaces when detachChildren is called so it can keep the children around. When the app relaunches, it will tear down the preserved surface. We also need to ensure the children aren't reparented to the new surface so we make sure the children weren't detached previously before reparented them to the new surface. Test: Quickly close and open app with SV. SV will not leak Bug: 157439199 Fixes: 155694905 Change-Id: Iea8ed86a9c4a7674804152aa44df7ef3d6341768
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions