workflow-kotlin
workflow-kotlin copied to clipboard
TextController could use setTextKeepState
trafficstars
https://developer.android.com/reference/android/widget/TextView#setTextKeepState(java.lang.CharSequence) method is available since API 1, and allows to use CharSequences instead of Stringgs. It allows, for example, nicer handling of different substates as cursor position, selection, and so on.
But CharSequence is mutable, right? That doesn't sound like a good thing to put in a State Flow
Or are you just suggesting we use that call from control()?