Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,17 @@ internal class PreparedLayoutTextView(context: Context) : ViewGroup(context), Re
@DoNotStrip get() = preparedLayout?.layout?.text

init {
initView()
// ViewGroup by default says only its children will draw
setWillNotDraw(false)
}

private fun initView() {
clickableSpans = emptyList()
selection = null
preparedLayout = null
}

fun recycleView(): Unit {
initView()
BackgroundStyleApplicator.reset(this)
overflow = Overflow.HIDDEN
clickableSpans = emptyList()
selection = null
selectionColor = null
preparedLayout = null
}

override fun onDraw(canvas: Canvas) {
Expand Down
Loading