kopia lustrzana https://github.com/ryukoposting/Signal-Android
Request layout after text changes to ensure content is properly sized.
rodzic
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) {
|
||||
|
|
Ładowanie…
Reference in New Issue