-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug Overlay #282
base: main
Are you sure you want to change the base?
Debug Overlay #282
Conversation
...ew/src/main/java/com/google/jetpackcamera/feature/preview/ui/debug/DebugOverlayComponents.kt
Outdated
Show resolved
Hide resolved
…k-camera-app into david/debugOverlay
@@ -153,7 +153,7 @@ class CameraXCameraUseCaseTest { | |||
Dispatchers.Default, | |||
constraintsRepository | |||
).apply { | |||
initialize(appSettings, CameraUseCase.UseCaseMode.STANDARD) | |||
initialize(appSettings, CameraUseCase.UseCaseMode.STANDARD) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to omit the empty bracket for the callback here and other places?
What about set null as default value?
@@ -44,7 +44,8 @@ interface CameraUseCase { | |||
suspend fun initialize( | |||
cameraAppSettings: CameraAppSettings, | |||
useCaseMode: UseCaseMode, | |||
isDebugMode: Boolean = false | |||
isDebugMode: Boolean = false, | |||
cameraPropertiesJSONCallback: (result: String) -> Unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to omit the empty bracket for this callback?
https://github.com/google/jetpack-camera-app/pull/282/files#diff-ddcefa1c42c7568a303536cd50adbf7c72115bb8ba254759ae5fd88f251e8167R156
What about set null as default value?
Current has two options: set zoom ratio and show camera properties
Screen.Recording.2024-11-07.at.3.59.30.PM.mov