summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRobert Snoeberger <snoeberger@google.com>2020-07-14 15:00:11 -0400
committerRobert Snoeberger <snoeberger@google.com>2020-07-14 15:07:45 -0400
commita455113a2b5e3d965c134312d59b1d9d4d59f84f (patch)
tree78b863377e31f369847406e478df655178b068b2 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf57fbbbe14be84941c730d07a7d2ad26899a0269 (diff)
Prevent NotificationIconContainer$3 from retaining NotificationEntry
It has been observed in heap dumps that NotificationIconContainer$3 can retain a NotificationEntry after the entry has been dismissed. To prevent this, this change breaks the reference chain between NotificationIconConatiner$3 and the IconState for the status bar icon. The cut is performed by setting the animation end action to null after the animation is started. Fixes: 160588607 Bug: 161119435 Test: manual - Clear all notifications. Take heap dump. Verify that weakref in AnimationEndAction has been collected (ie. is null). Change-Id: I32184a30df89a5172876a43da4896a2e06e3c86c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions