workflow-kotlin icon indicating copy to clipboard operation
workflow-kotlin copied to clipboard

TextController could use setTextKeepState

Open 0legg opened this issue 4 years ago • 2 comments
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.

0legg avatar Nov 05 '21 00:11 0legg

But CharSequence is mutable, right? That doesn't sound like a good thing to put in a State Flow

rjrjr avatar Nov 05 '21 13:11 rjrjr

Or are you just suggesting we use that call from control()?

rjrjr avatar Nov 05 '21 13:11 rjrjr