mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
Prevent updating flashlight button state before turning updating flashlight
This commit is contained in:
@ -168,9 +168,6 @@ class MyCameraImpl private constructor(private val context: Context, private var
|
||||
if (MyCameraImpl.cameraFlash == null) {
|
||||
MyCameraImpl.cameraFlash = CameraFlash(context, cameraTorchListener)
|
||||
}
|
||||
scope.launch {
|
||||
_flashlightOn.emit(isFlashlightOn)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
scope.launch {
|
||||
cameraError.emit(Unit)
|
||||
|
Reference in New Issue
Block a user