@@ -17,6 +17,8 @@ import io.github.sds100.keymapper.common.utils.then
1717import io.github.sds100.keymapper.common.utils.valueOrNull
1818import io.github.sds100.keymapper.system.JobSchedulerHelper
1919import io.github.sds100.keymapper.system.root.SuAdapter
20+ import javax.inject.Inject
21+ import javax.inject.Singleton
2022import kotlinx.coroutines.CoroutineScope
2123import kotlinx.coroutines.flow.MutableStateFlow
2224import kotlinx.coroutines.flow.SharingStarted
@@ -26,8 +28,6 @@ import kotlinx.coroutines.flow.onEach
2628import kotlinx.coroutines.flow.stateIn
2729import kotlinx.coroutines.runBlocking
2830import timber.log.Timber
29- import javax.inject.Inject
30- import javax.inject.Singleton
3131
3232@Singleton
3333class AndroidInputMethodAdapter @Inject constructor(
@@ -64,7 +64,7 @@ class AndroidInputMethodAdapter @Inject constructor(
6464
6565 override val inputMethods: MutableStateFlow <List <ImeInfo >> by lazy {
6666 MutableStateFlow (
67- getInputMethods()
67+ getInputMethods(),
6868 )
6969 }
7070
@@ -75,7 +75,7 @@ class AndroidInputMethodAdapter @Inject constructor(
7575 if (it == null ) {
7676 Timber .e(" No input method is chosen." )
7777 } else {
78- Timber .i (" On input method chosen, chosen IME = ${chosenIme.value} " )
78+ Timber .d (" On input method chosen, chosen IME = ${chosenIme.value} " )
7979 }
8080 }
8181 .stateIn(coroutineScope, SharingStarted .Lazily , getChosenIme())
0 commit comments