mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
fix inconsistencies when user switches camera mode fast
- debounce switching by 500ms when toggling between video/photo capture - ensure there is only one source of truth for the current camera mode - this is the CameraXPreview - refactor the MainActivity to depend on the CameraXPreview for the camera mode - remove unused code in CameraXPreviewListener, MyPreview and in MainActivity
This commit is contained in:
@ -23,7 +23,8 @@ class CameraXInitializer(private val activity: BaseSimpleActivity) {
|
||||
mediaOutputHelper,
|
||||
cameraErrorHandler,
|
||||
listener,
|
||||
initInPhotoMode,
|
||||
isThirdPartyIntent = isThirdPartyIntent,
|
||||
initInPhotoMode = initInPhotoMode,
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user