ha-yi / MultiColorTextView

17 stars 8 forks source link

setText append new text with previous one #1

Open reversecoder opened 6 years ago

reversecoder commented 6 years ago

Hello,

Firstly thanks for this beautiful library.

I have tried your library. But found one issue. If I want to set text programmatically using setText for more than one time, it just append new text with previous one. And I solved this issue adding removeAllViews() at the starting of renderText method. I think this is a serious issue. Please fix this at new release.

private fun renderText() { removeAllViews()

................. }

Thanks, Rashed

subbramanil commented 4 years ago

@ha-yi The issue reversecoder is very easily reproducible when updating the text of the same text view. The solution proposed is also correct.