chinwag-android/app/src/main/java/com/keylesspalace/tusky/util/ClickableSpanNoUnderline.kt

11 lines
295 B
Kotlin
Raw Normal View History

package com.keylesspalace.tusky.util
import android.text.TextPaint
import android.text.style.ClickableSpan
abstract class ClickableSpanNoUnderline : ClickableSpan() {
2018-09-23 05:11:18 +10:00
override fun updateDrawState(ds: TextPaint) {
super.updateDrawState(ds)
2018-09-23 05:11:18 +10:00
ds.isUnderlineText = false
}
}