Commit 8fcc8c63 by Drew Hill

change to getview call instead of set property

parent 214c55b6
...@@ -39,7 +39,6 @@ import com.google.android.exoplayer2.Timeline; ...@@ -39,7 +39,6 @@ import com.google.android.exoplayer2.Timeline;
import com.google.android.exoplayer2.metadata.Metadata; import com.google.android.exoplayer2.metadata.Metadata;
import com.google.android.exoplayer2.metadata.id3.ApicFrame; import com.google.android.exoplayer2.metadata.id3.ApicFrame;
import com.google.android.exoplayer2.source.TrackGroupArray; import com.google.android.exoplayer2.source.TrackGroupArray;
import com.google.android.exoplayer2.text.CaptionStyleCompat;
import com.google.android.exoplayer2.text.Cue; import com.google.android.exoplayer2.text.Cue;
import com.google.android.exoplayer2.text.TextRenderer; import com.google.android.exoplayer2.text.TextRenderer;
import com.google.android.exoplayer2.trackselection.TrackSelection; import com.google.android.exoplayer2.trackselection.TrackSelection;
...@@ -479,10 +478,8 @@ public final class SimpleExoPlayerView extends FrameLayout { ...@@ -479,10 +478,8 @@ public final class SimpleExoPlayerView extends FrameLayout {
return useController ? controller.dispatchKeyEvent(event) : super.dispatchKeyEvent(event); return useController ? controller.dispatchKeyEvent(event) : super.dispatchKeyEvent(event);
} }
public void setSubtitleStyle(CaptionStyleCompat style) { public SubtitleView getSubtitleView() {
return subtitleView;
if (subtitleView != null)
subtitleView.setStyle(style);
} }
private void maybeShowController(boolean isForced) { private void maybeShowController(boolean isForced) {
......
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