Commit ad9f76eb by Rik Heijdens

Return a copy of the SpannableStringBuilder when building Cues

In order to force the SubtitlePainter to redraw cues
parent 35fa5e2e
......@@ -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);
}
......
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