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:
darthpaul
2022-11-25 15:50:05 +00:00
parent 772ffb21ad
commit ef2f3eb766
7 changed files with 4 additions and 50 deletions

View File

@ -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.")