mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
PR changes:
- remove rotating close icon from shutter button - remove toggling flashlight on each countdown tick - remove sound (to be addressed later)
This commit is contained in:
@ -465,16 +465,6 @@ class CameraXPreview(
|
||||
listener.onChangeFlashMode(flashState)
|
||||
}
|
||||
|
||||
override fun toggleFlash() {
|
||||
if (config.isSoundEnabled) {
|
||||
mediaSoundHelper.playFocusCompleteSound()
|
||||
}
|
||||
camera?.cameraControl?.enableTorch(true)
|
||||
cameraHandler.postDelayed({
|
||||
camera?.cameraControl?.enableTorch(false)
|
||||
}, TOGGLE_FLASH_DELAY)
|
||||
}
|
||||
|
||||
override fun tryTakePicture() {
|
||||
val imageCapture = imageCapture ?: throw IllegalStateException("Camera initialization failed.")
|
||||
|
||||
|
Reference in New Issue
Block a user