Remove usage of GlobalScope - I guess for those ones this is OK...
This commit is contained in:
parent
4112d28127
commit
0711ecc7f4
|
@ -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()) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue