Commit 06d73e93 by ibaker Committed by Ian Baker

Don't implement Player.Listener from SubtitleView

We never register SubtitleView as a Player.Listener directly, it's
always done via PlayerView.

PiperOrigin-RevId: 447467037
parent f08fdf6a
...@@ -31,7 +31,6 @@ import android.widget.FrameLayout; ...@@ -31,7 +31,6 @@ import android.widget.FrameLayout;
import androidx.annotation.Dimension; import androidx.annotation.Dimension;
import androidx.annotation.IntDef; import androidx.annotation.IntDef;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.google.android.exoplayer2.Player;
import com.google.android.exoplayer2.text.Cue; import com.google.android.exoplayer2.text.Cue;
import com.google.android.exoplayer2.util.Util; import com.google.android.exoplayer2.util.Util;
import java.lang.annotation.Documented; import java.lang.annotation.Documented;
...@@ -42,7 +41,7 @@ import java.util.Collections; ...@@ -42,7 +41,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
/** A view for displaying subtitle {@link Cue}s. */ /** A view for displaying subtitle {@link Cue}s. */
public final class SubtitleView extends FrameLayout implements Player.Listener { public final class SubtitleView extends FrameLayout {
/** /**
* An output for displaying subtitles. * An output for displaying subtitles.
...@@ -150,11 +149,6 @@ public final class SubtitleView extends FrameLayout implements Player.Listener { ...@@ -150,11 +149,6 @@ public final class SubtitleView extends FrameLayout implements Player.Listener {
viewType = VIEW_TYPE_CANVAS; viewType = VIEW_TYPE_CANVAS;
} }
@Override
public void onCues(List<Cue> cues) {
setCues(cues);
}
/** /**
* Sets the cues to be displayed by the view. * Sets the cues to be displayed by the view.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment