Source set: Android
val restartInput =
oldValue?.let {
it.text != newValue.text ||
// when selection is the same but composition has changed, need to reset the
// input.
(it.selection == newValue.selection && it.composition != newValue.composition)
} ?: false