media3/libraries
tonihei 7cf2fd9486 Postpone AdTagLoader listener deregistration to receive final error
When the AdTagLoader is deactivated because of a player error, the
error callback is already pending on the app's main thread, but not
yet executed. This means the VideoAdPlayerCallback instances
registered in AdTagLoader won't receive this error event if the
Player.Listener is immediately removed from AdTagLoader.

This can be fixed by postponing the deregistration until after
already pending messages have been handled. As this means other
callbacks can be triggered now with player==null, this check needs
to be added to other callbacks to avoid handling stale events.

Issue: androidx/media#1334
PiperOrigin-RevId: 630068222
2024-05-02 08:19:04 -07:00
..
2024-05-01 04:05:42 -07:00
2024-03-11 06:45:15 -07:00
2024-04-29 08:14:20 -07:00
2024-02-15 02:35:12 -08:00
2024-02-15 02:35:12 -08:00
2024-02-15 02:35:12 -08:00
2024-04-25 05:05:42 -07:00
2024-04-30 08:49:16 -07:00
2024-04-09 04:12:42 -07:00