Fix description scrolling

pull/440/head
Koitharu 3 years ago
parent 2378d104c3
commit 00187c0d17
Signed by: Koitharu
GPG Key ID: 676DEE768C17A9D7

@ -26,4 +26,12 @@ class SelectableTextView @JvmOverloads constructor(
Selection.setSelection(spannableText, text.length) Selection.setSelection(spannableText, text.length)
} }
} }
override fun scrollTo(x: Int, y: Int) {
if (maxLines in 1 until Integer.MAX_VALUE) {
super.scrollTo(0, 0)
} else {
super.scrollTo(x, y)
}
}
} }

Loading…
Cancel
Save