This commit is contained in:
Finnley Somdahl 2024-01-23 13:56:59 -06:00
parent 4c797c5eb1
commit d02d542207

View file

@ -1965,7 +1965,7 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL
}
override fun onCastSessionAvailable() {
if (isCastApiAvailable) {
if (isCastApiAvailable && !this.isDestroyed) {
startCastPlayer()
}
}