mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
adding a crashfix at the Plain Text notes
This commit is contained in:
@ -143,9 +143,11 @@ class TextFragment : NoteFragment() {
|
||||
|
||||
if (config.showKeyboard && isMenuVisible) {
|
||||
onGlobalLayout {
|
||||
requestFocus()
|
||||
val inputManager = activity!!.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||
inputManager.showSoftInput(this, InputMethodManager.SHOW_IMPLICIT)
|
||||
if (activity?.isDestroyed == false) {
|
||||
requestFocus()
|
||||
val inputManager = activity!!.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||
inputManager.showSoftInput(this, InputMethodManager.SHOW_IMPLICIT)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user