mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Return a copy of the SpannableStringBuilder when building Cues
In order to force the SubtitlePainter to redraw cues
This commit is contained in:
parent
35fa5e2ef7
commit
ad9f76eb62
1 changed files with 2 additions and 1 deletions
|
|
@ -178,7 +178,8 @@ import java.util.List;
|
|||
float cueLine = 10 + (5.33f * row);
|
||||
float cuePosition = 10 + (2.5f * indent);
|
||||
cuePosition = (tabOffset * 2.5f) + cuePosition;
|
||||
return new Cue(captionStringBuilder, Layout.Alignment.ALIGN_NORMAL, cueLine / 100, Cue.LINE_TYPE_FRACTION,
|
||||
return new Cue(new SpannableStringBuilder(captionStringBuilder),
|
||||
Layout.Alignment.ALIGN_NORMAL, cueLine / 100, Cue.LINE_TYPE_FRACTION,
|
||||
Cue.ANCHOR_TYPE_START, cuePosition / 100, Cue.TYPE_UNSET, Cue.DIMEN_UNSET);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue