Skip to content

Commit

Permalink
fix: main keyboard view wouldn't show up after switching schema
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed May 6, 2024
1 parent 5dc3eb8 commit 2c2f889
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import com.osfans.trime.data.AppPrefs
import com.osfans.trime.data.schema.SchemaManager
import com.osfans.trime.data.theme.EventManager
import com.osfans.trime.data.theme.ThemeManager
import com.osfans.trime.ime.core.InputView
import com.osfans.trime.ime.core.Speech
import com.osfans.trime.ime.core.TrimeInputMethodService
import com.osfans.trime.ime.dialog.AvailableSchemaPickerDialog
Expand Down Expand Up @@ -218,6 +219,7 @@ class TextInputManager(
SchemaManager.init(notification.value.schemaId)
Rime.updateStatus()
trime.recreateInputView()
trime.inputView?.switchBoard(InputView.Board.Main)
} else if (notification is RimeNotification.OptionNotification) {
Rime.updateContext() // 切換中英文、簡繁體時更新候選
val value = notification.value.value
Expand Down

0 comments on commit 2c2f889

Please sign in to comment.