summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorCharles Chen <charlesccchen@google.com>2021-04-16 16:09:44 +0800
committerCharles Chen <charlesccchen@google.com>2021-04-20 14:10:45 +0800
commitd9ea032b739df157d9229ee214bb562cbb88508b (patch)
tree40dd9224d351e9d993363017876c833e668f3502 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent6db5c60751a9c0db378f85a8e7477c5b047de414 (diff)
Fix WindowContext is removed unexpectedly
Previously WindowContext is removed if the associated WindowContainer is removed. However, it causes an issue that WindowContext is removed unexpectedly after the last window is removed by WM#removeView(). When the last view is removed, WMS will remove the WindowToken in postWindowRemoveCleanupLocked(), and if the WindowToken is created by WindowContext, the associated WindowContext is also removed unexpectedly. This CL makes WindowContext switch back to listen to the previous DisplayArea if the last window is removed. Test: atest WindowContextListenerControllerTests Bug: 185460076 Change-Id: I9c1d0c15c77bbfb3662355f8c72f0d8c70ed6748
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions