mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
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. |
||
|---|---|---|
| .. | ||
| androidTest | ||
| main | ||