Remove usage of GlobalScope - I guess for those ones this is OK...

This commit is contained in:
Benoit Marty 2021-05-14 15:09:29 +02:00
parent 4112d28127
commit 0711ecc7f4
2 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class PinLocker @Inject constructor(
return liveState
}
@Suppress("EXPERIMENTAL_API_USAGE")
private fun computeState() {
GlobalScope.launch {
val state = if (shouldBeLocked && pinCodeStore.hasEncodedPin()) {

View File

@ -88,6 +88,7 @@ class VectorFileLogger @Inject constructor(
}
}
@Suppress("EXPERIMENTAL_API_USAGE")
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
fileHandler ?: return
GlobalScope.launch(Dispatchers.IO) {