File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/src/main/java/com/osfans/trime/ime/keyboard Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import com.osfans.trime.ime.core.TrimeInputMethodService
23
23
import com.osfans.trime.ime.dependency.InputScope
24
24
import com.osfans.trime.ime.keyboard.KeyboardPrefs.isLandscapeMode
25
25
import com.osfans.trime.ime.window.BoardWindow
26
+ import com.osfans.trime.ime.window.BoardWindowManager
26
27
import com.osfans.trime.ime.window.ResidentWindow
27
28
import me.tatarka.inject.annotations.Inject
28
29
import splitties.views.dsl.core.add
@@ -38,6 +39,7 @@ class KeyboardWindow(
38
39
private val service : TrimeInputMethodService ,
39
40
private val theme : Theme ,
40
41
private val rime : RimeSession ,
42
+ private val windowManager : BoardWindowManager ,
41
43
) : BoardWindow.NoBarBoardWindow(), ResidentWindow, InputBroadcastReceiver {
42
44
private val cursorCapsMode: Int
43
45
get() =
@@ -156,6 +158,9 @@ class KeyboardWindow(
156
158
keyboardsCached[target] = keyboard
157
159
attachKeyboard(target)
158
160
}
161
+ if (windowManager.isAttached(this )) {
162
+ service.updateComposing()
163
+ }
159
164
}
160
165
Timber .d(" Switched to keyboard: $target " )
161
166
}
You can’t perform that action at this time.
0 commit comments