Each TextView will register its events itself with the tagger from the textbuffer and when the textview is closed then the events are unregistered again.
The previous implementation was allocating way too many samewordhighlighters.
Also changed the color for the same word highlighters in the example code.
Each TextView will register its events itself with the tagger from the textbuffer and when the textview is closed then the events are unregistered again. The previous implementation was allocating way too many samewordhighlighters. Also changed the color for the same word highlighters in the example code.