Commit 54d8b5bc 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 63dcdf58
......@@ -31,7 +31,6 @@ import android.widget.FrameLayout;
import androidx.annotation.Dimension;
import androidx.annotation.IntDef;
import androidx.annotation.Nullable;
import androidx.media3.common.Player;
import androidx.media3.common.text.Cue;
import androidx.media3.common.util.UnstableApi;
import androidx.media3.common.util.Util;
......@@ -44,7 +43,7 @@ import java.util.List;
/** A view for displaying subtitle {@link Cue}s. */
@UnstableApi
public final class SubtitleView extends FrameLayout implements Player.Listener {
public final class SubtitleView extends FrameLayout {
/**
* An output for displaying subtitles.
......@@ -152,11 +151,6 @@ public final class SubtitleView extends FrameLayout implements Player.Listener {
viewType = VIEW_TYPE_CANVAS;
}
@Override
public void onCues(List<Cue> cues) {
setCues(cues);
}
/**
* 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