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 return liveState
} }
@Suppress("EXPERIMENTAL_API_USAGE")
private fun computeState() { private fun computeState() {
GlobalScope.launch { GlobalScope.launch {
val state = if (shouldBeLocked && pinCodeStore.hasEncodedPin()) { 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?) { override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
fileHandler ?: return fileHandler ?: return
GlobalScope.launch(Dispatchers.IO) { GlobalScope.launch(Dispatchers.IO) {