Skip to content

Commit

Permalink
Allow overriding embedded subtitle styles
Browse files Browse the repository at this point in the history
Resolves #51
  • Loading branch information
moneytoo committed Feb 11, 2021
1 parent dfed954 commit 9d25064
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/brouken/player/PlayerActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ else if (rational.floatValue() < rationalLimitTall.floatValue())
subtitleView.setStyle(captionStyle);
} else {
subtitlesScale = captioningManager.getFontScale();
final SubtitleView subtitleView = playerView.getSubtitleView();
if (subtitleView != null)
subtitleView.setApplyEmbeddedStyles(false);
}

setSubtitleTextSize();
Expand Down

0 comments on commit 9d25064

Please sign in to comment.