Skip to content

Commit 01976cf

Browse files
if-canWhiredPlanck
authored andcommitted
fix: force show mode, toggle switch options cannot update view
1 parent 069a12f commit 01976cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/osfans/trime/ime/core/InputDeviceManager.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class InputDeviceManager {
2222
private val candidatesMode by AppPrefs.defaultInstance().candidates.mode
2323

2424
private fun setupInputViewCallback(isVirtual: Boolean) {
25-
val shouldSetupInputView = isVirtual && candidatesMode != PopupCandidatesMode.FORCE_SHOW
26-
inputView?.handleMessage = shouldSetupInputView
25+
inputView?.handleMessage = isVirtual
2726
inputView?.visibility = if (isVirtual) View.VISIBLE else View.GONE
2827
}
2928

0 commit comments

Comments
 (0)