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
Loading
Please register or sign in to comment
