diff options
| author | 2025-01-29 15:59:40 +0100 | |
|---|---|---|
| committer | 2025-02-03 01:30:31 -0800 | |
| commit | d9dd4341eb1f0714b1056d134464487db9ea6d94 (patch) | |
| tree | 633becd24de57899652d3823cac669c41d5d2492 /libs/androidfw/Util.cpp | |
| parent | 107fe807c3ee6265ea430f2a0ffe0b1f125d147a (diff) | |
Tie the jank listener lifetime to the registration.
This makes sure that the listener doesn't get GC'ed as long as the
registration stays alive. When the listener is GC'ed, it's automatically
removed from the jank tracking API. Since we wrap the listener in the
AttachedSurfaceControl, there are no other references to the listener.
Bug: b/392687889
Test: manual
Flag: EXEMPT bugfix
Change-Id: I6721971fc03df92b14c5fd41a5c2aa828a2b4c93
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions