Request layout after text changes to ensure content is properly sized.

fork-5.53.8
Alex Hart 2022-10-19 13:43:36 -03:00 zatwierdzone przez Cody Henthorne
rodzic 39c1939470
commit 44f551acc5
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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) {