Skip to content

Commit

Permalink
fix: ensure to pass non-null input editor info to startInput of Inp…
Browse files Browse the repository at this point in the history
…utView ...

... on theme color changing to avoid a potential crash.
  • Loading branch information
WhiredPlanck committed Apr 13, 2024
1 parent 6084661 commit 9096817
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
ColorManager.OnColorChangeListener {
lifecycleScope.launch(Dispatchers.Main) {
recreateInputView()
inputView?.startInput(currentInputEditorInfo)
currentInputEditorInfo?.let { inputView?.startInput(it) }
}
}

Expand Down

0 comments on commit 9096817

Please sign in to comment.