We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5fe60d commit 233bda4Copy full SHA for 233bda4
app/src/main/java/com/osfans/trime/core/Rime.kt
@@ -63,6 +63,12 @@ class Rime :
63
},
64
)
65
66
+ init {
67
+ if (lifecycle.currentStateFlow.value != RimeLifecycle.State.STOPPED) {
68
+ throw IllegalStateException("Rime has already been created!")
69
+ }
70
71
+
72
private suspend inline fun <T> withRimeContext(crossinline block: suspend () -> T): T = withContext(dispatcher) {
73
block()
74
}
0 commit comments