Skip to content

Commit

Permalink
fix: 输入状态下切换配色,悬浮窗无法关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan authored and WhiredPlanck committed Jul 22, 2024
1 parent d4a581d commit 34b59c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
*
* 重置鍵盤、候選條、狀態欄等 !!注意,如果其中調用Rime.setOption,切換方案會卡住 */
fun recreateInputView() {
inputView?.composition?.hideCompositionView()
inputView = InputView(this, rime)
mainKeyboardView = inputView!!.keyboardWindow.oldMainInputView.mainKeyboardView

Expand Down Expand Up @@ -372,7 +373,6 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
postRimeJob { clearComposition() }
inputView?.composition?.hideCompositionView()
ColorManager.onSystemNightModeChange(newConfig.isNightMode())
}

Expand Down

0 comments on commit 34b59c4

Please sign in to comment.