Skip to content

Commit

Permalink
fix: currentKeyboardView has not been initialized, causing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
if-can authored and Bambooin committed Jan 19, 2025
1 parent ebfda6e commit c62cdd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
commitText(commit.text)
}
updateComposingText(ctx)
KeyboardSwitcher.currentKeyboardView.invalidateAllKeys()
KeyboardSwitcher.currentKeyboardView?.invalidateAllKeys()
}
is RimeMessage.KeyMessage ->
it.data.let event@{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ package com.osfans.trime.ime.keyboard
@Deprecated("Migrate into KeyboardWindow")
object KeyboardSwitcher {
lateinit var currentKeyboard: Keyboard
lateinit var currentKeyboardView: KeyboardView
var currentKeyboardView: KeyboardView? = null
}

0 comments on commit c62cdd5

Please sign in to comment.