Allow multiple identical but intermittent spans
Multiple identical TTML fontStyles or fontWeights or textDecorations on the content for a specific moment were rendered as if there's only one decoration (span). That's because SpannableStringBuilder.setSpan(span, start, end, flag) found an earlier set span (the static allocated span's reference is the same each time) and only refreshed this first span's start and end values instead of adding a new span at its (new) different range. This patch removes the static data members; this makes the newly allocated span objects distinguishable. A correct implementation is favoured over worries about memory consumption.
Showing
with
3 additions
and
13 deletions
Please
register
or
sign in
to comment