File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
app/src/main/java/com/osfans/trime/ime Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -220,8 +220,10 @@ class InputView(
220
220
" _hide_comment" -> {
221
221
quickBar.oldCandidateBar.candidates.setShowComment(! it.value)
222
222
}
223
- " _hide_candidate" -> {
224
- quickBar.oldCandidateBar.root.visibility =
223
+ " _hide_bar" ,
224
+ " _hide_candidate" ,
225
+ -> {
226
+ quickBar.view.visibility =
225
227
if (it.value) View .GONE else View .VISIBLE
226
228
}
227
229
" _hide_key_hint" -> keyboardWindow.oldMainInputView.mainKeyboardView.setShowHint(! it.value)
Original file line number Diff line number Diff line change @@ -368,7 +368,12 @@ open class Trime : LifecycleInputMethodService() {
368
368
if (mCandidateRoot != null ) {
369
369
loadBackground(true )
370
370
setShowComment(! Rime .getOption(" _hide_comment" ))
371
- mCandidateRoot!! .visibility = if (! Rime .getOption(" _hide_candidate" )) View .VISIBLE else View .GONE
371
+ inputView?.quickBar?.view?.visibility =
372
+ if (! Rime .getOption(" _hide_candidate" ) || ! Rime .getOption(" _hide_bar" )) {
373
+ View .VISIBLE
374
+ } else {
375
+ View .GONE
376
+ }
372
377
mCandidate!! .reset()
373
378
mCompositionPopupWindow!! .isPopupWindowEnabled = (
374
379
prefs.keyboard.popupWindowEnabled &&
Original file line number Diff line number Diff line change @@ -232,7 +232,9 @@ class TextInputManager private constructor() :
232
232
trime.inputFeedbackManager?.ttsLanguage =
233
233
locales[if (value) 1 else 0 ]
234
234
}
235
- " _hide_candidate" -> {
235
+ " _hide_bar" ,
236
+ " _hide_candidate" ,
237
+ -> {
236
238
trime.setCandidatesViewShown(isComposable && ! value)
237
239
}
238
240
" _liquid_keyboard" -> trime.selectLiquidKeyboard(0 )
You can’t perform that action at this time.
0 commit comments