mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

When removing one listener from the `ListenerSet`, we release the corresponding `ListenerHolder`, which prevents the event queued or sent later than the removal from being invoked. We should also do this in the method `ListenerSet.clear()` where every listener is removed. PiperOrigin-RevId: 652535216