Skip to content

Commit 40aed39

Browse files
committed
log input method chosen as debug message
1 parent 9c587c2 commit 40aed39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

system/src/main/java/io/github/sds100/keymapper/system/inputmethod/AndroidInputMethodAdapter.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import io.github.sds100.keymapper.common.utils.then
1717
import io.github.sds100.keymapper.common.utils.valueOrNull
1818
import io.github.sds100.keymapper.system.JobSchedulerHelper
1919
import io.github.sds100.keymapper.system.root.SuAdapter
20+
import javax.inject.Inject
21+
import javax.inject.Singleton
2022
import kotlinx.coroutines.CoroutineScope
2123
import kotlinx.coroutines.flow.MutableStateFlow
2224
import kotlinx.coroutines.flow.SharingStarted
@@ -26,8 +28,6 @@ import kotlinx.coroutines.flow.onEach
2628
import kotlinx.coroutines.flow.stateIn
2729
import kotlinx.coroutines.runBlocking
2830
import timber.log.Timber
29-
import javax.inject.Inject
30-
import javax.inject.Singleton
3131

3232
@Singleton
3333
class 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

Comments
 (0)