为什么在OnFocusChangeListener中调用setText()会清除视图中的文本?

当我从onFocusChangeListener中调用setText()而不是使字段显示文本“hello World”时,它是空白的。 当字段失去焦点时,如何获得文本更新?

代码在Kotlin:

editText.setOnFocusChangeListener { view, hasFocus -> (view as EditText).setText("hello World") }