Skip to content

Commit

Permalink
fix: popup window cannot close
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan authored and WhiredPlanck committed Feb 21, 2024
1 parent aeb81e8 commit fa070cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/osfans/trime/ime/core/Trime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ open class Trime : LifecycleInputMethodService() {
*
* 重置鍵盤、候選條、狀態欄等 !!注意,如果其中調用Rime.setOption,切換方案會卡住 */
fun recreateInputView() {
mCompositionPopupWindow?.finishInput()
inputView = InputView(this, Rime.getInstance(false))
mainKeyboardView = inputView!!.keyboardWindow.oldMainInputView.mainKeyboardView
// 初始化候选栏
Expand Down

0 comments on commit fa070cf

Please sign in to comment.