mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Fix Image expanded caption scroll to top.
This commit is contained in:
@@ -50,8 +50,10 @@ class ExpandingCaptionView @JvmOverloads constructor(
|
||||
if (expand) {
|
||||
setMaxLength(-1)
|
||||
text = fullCaptionText
|
||||
scrollTo(0, 0)
|
||||
updateLayoutParams { height = expandedHeight }
|
||||
post {
|
||||
scrollTo(0, 0)
|
||||
}
|
||||
} else {
|
||||
setMaxLength(CHAR_LIMIT_MESSAGE_PREVIEW)
|
||||
text = fullCaptionText
|
||||
|
||||
Reference in New Issue
Block a user