mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Request layout after text changes to ensure content is properly sized.
This commit is contained in:
committed by
Cody Henthorne
parent
39c1939470
commit
44f551acc5
@@ -39,6 +39,10 @@ class TextStoryTextWatcher private constructor(private val textView: TextView) :
|
||||
}
|
||||
|
||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, DimensionUnit.DP.toPixels(expectedTextSize))
|
||||
|
||||
if (textView !is EditText) {
|
||||
textView.requestLayout()
|
||||
}
|
||||
}
|
||||
|
||||
fun install(textView: TextView) {
|
||||
|
||||
Reference in New Issue
Block a user