mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-21 23:54:33 +01:00
Migrate profiles to new libraries
This commit is contained in:
@@ -38,12 +38,6 @@ import kotlinx.coroutines.CoroutineExceptionHandler
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Job
|
||||
import kotlinx.coroutines.launch
|
||||
import no.nordicsemi.android.navigation.ParcelableArgument
|
||||
import no.nordicsemi.android.navigation.SuccessDestinationResult
|
||||
import no.nordicsemi.ui.scanner.DiscoveredBluetoothDevice
|
||||
|
||||
val <T> T.exhaustive
|
||||
get() = this
|
||||
|
||||
val String.Companion.EMPTY
|
||||
get() = ""
|
||||
@@ -54,10 +48,6 @@ fun Context.isServiceRunning(serviceClassName: String): Boolean {
|
||||
return services.find { it.service.className == serviceClassName } != null
|
||||
}
|
||||
|
||||
fun SuccessDestinationResult.getDevice(): DiscoveredBluetoothDevice {
|
||||
return (argument as ParcelableArgument).value as DiscoveredBluetoothDevice
|
||||
}
|
||||
|
||||
private val exceptionHandler = CoroutineExceptionHandler { _, t ->
|
||||
Log.e("COROUTINE-EXCEPTION", "Uncaught exception", t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user