File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/src/main/java/com/osfans/trime/ime/core Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -293,9 +293,9 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
293
293
commitTextByChar(checkNotNull(ShortcutUtils .pasteFromClipboard(this )).toString())
294
294
}
295
295
296
- private fun showCompositionView (isCandidate : Boolean ) {
297
- if (Rime .compositionText.isEmpty() && isCandidate ) {
298
- mCompositionPopupWindow!! .hideCompositionView()
296
+ private fun showCompositionView () {
297
+ if (Rime .compositionText.isEmpty()) {
298
+ mCompositionPopupWindow? .hideCompositionView()
299
299
return
300
300
}
301
301
mCompositionPopupWindow?.updateCompositionView()
@@ -375,8 +375,8 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
375
375
}
376
376
377
377
override fun onUpdateCursorAnchorInfo (cursorAnchorInfo : CursorAnchorInfo ) {
378
- mCompositionPopupWindow!! .updateCursorAnchorInfo(cursorAnchorInfo)
379
- showCompositionView(true )
378
+ mCompositionPopupWindow? .updateCursorAnchorInfo(cursorAnchorInfo)
379
+ showCompositionView()
380
380
}
381
381
382
382
override fun onUpdateSelection (
@@ -1102,7 +1102,7 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
1102
1102
mCandidate!! .setText(startNum)
1103
1103
// if isCursorUpdated, showCompositionView will be called in onUpdateCursorAnchorInfo
1104
1104
// otherwise we need to call it here
1105
- if (! mCompositionPopupWindow!! .isCursorUpdated) showCompositionView(true )
1105
+ if (! mCompositionPopupWindow!! .isCursorUpdated) showCompositionView()
1106
1106
} else {
1107
1107
mCandidate!! .setText(0 )
1108
1108
}
You can’t perform that action at this time.
0 commit comments