Skip to content

Commit

Permalink
Remove ForwardingPlayer special case from PlayerControlView.setPlayer
Browse files Browse the repository at this point in the history
This was originally added in 4fd7d77, but it hasn't done anything
since 98ee159 (when the instanceof ExoPlayer check was removed).

PiperOrigin-RevId: 482161662
(cherry picked from commit a5b09b8)
  • Loading branch information
icbaker authored and microkatz committed Oct 19, 2022
1 parent d8b6c29 commit 950ea91
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
import androidx.core.content.res.ResourcesCompat;
import androidx.media3.common.C;
import androidx.media3.common.Format;
import androidx.media3.common.ForwardingPlayer;
import androidx.media3.common.MediaLibraryInfo;
import androidx.media3.common.Player;
import androidx.media3.common.Player.Events;
Expand Down Expand Up @@ -633,9 +632,6 @@ public void setPlayer(@Nullable Player player) {
if (player != null) {
player.addListener(componentListener);
}
if (player instanceof ForwardingPlayer) {
player = ((ForwardingPlayer) player).getWrappedPlayer();
}
updateAll();
}

Expand Down

0 comments on commit 950ea91

Please sign in to comment.