mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Use Unit for completer
This commit is contained in:
parent
92d1d6582a
commit
3d17012fb7
@ -31,7 +31,7 @@ class VideoRecorderService :
|
||||
private var activeRecording: Recording? = null
|
||||
|
||||
// Used to listen and check if the camera is available
|
||||
private var _cameraAvailableListener = CompletableDeferred<Boolean>()
|
||||
private var _cameraAvailableListener = CompletableDeferred<Unit>()
|
||||
|
||||
// Runs a function in the main thread
|
||||
private fun runInMain(callback: () -> Unit) {
|
||||
@ -61,7 +61,7 @@ class VideoRecorderService :
|
||||
videoCapture
|
||||
)
|
||||
|
||||
_cameraAvailableListener.complete(true)
|
||||
_cameraAvailableListener.complete(Unit)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user