Skip to content

Commit

Permalink
fix: force show mode, toggle switch options cannot update view
Browse files Browse the repository at this point in the history
  • Loading branch information
if-can committed Jan 17, 2025
1 parent 36579ad commit dabdf9f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class InputDeviceManager {
private val candidatesMode by AppPrefs.defaultInstance().candidates.mode

private fun setupInputViewCallback(isVirtual: Boolean) {
val shouldSetupInputView = isVirtual && candidatesMode != PopupCandidatesMode.FORCE_SHOW
inputView?.handleMessage = shouldSetupInputView
inputView?.handleMessage = isVirtual
inputView?.visibility = if (isVirtual) View.VISIBLE else View.GONE
}

Expand Down

0 comments on commit dabdf9f

Please sign in to comment.