Fix opening keyboard for new tasks

pull/3782/merge
Alex Baker 1 day ago
parent 2b27c43188
commit ac19d1977e

@ -106,10 +106,13 @@ fun EditTextView(
},
update = { view ->
if (shouldRequestFocus) {
view.requestFocus()
val imm = context.getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT)
shouldRequestFocus = false
view.post {
if (view.requestFocus()) {
val imm = context.getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT)
}
}
}
view.paintFlags = if (strikethrough) {
view.paintFlags or Paint.STRIKE_THRU_TEXT_FLAG

Loading…
Cancel
Save