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
This commit is contained in:
parent
63dcdf5803
commit
54d8b5bc7c
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user