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
|
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()) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue