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 google@4fd7d77, but it hasn't done anything
since google@98ee159 (when the instanceof ExoPlayer check was removed).

PiperOrigin-RevId: 482161662
  • Loading branch information
icbaker authored and marcbaechinger committed Oct 20, 2022
1 parent 620d8c9 commit 7d5f1a2
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.ForwardingPlayer;
import com.google.android.exoplayer2.Player;
import com.google.android.exoplayer2.Player.Events;
import com.google.android.exoplayer2.Player.State;
Expand Down Expand Up @@ -639,9 +638,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 7d5f1a2

Please sign in to comment.