Skip to content
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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Debug Overlay #282

wants to merge 11 commits into from

Conversation

davidjiagoogle
Copy link
Collaborator

@davidjiagoogle davidjiagoogle commented Nov 8, 2024

Current has two options: set zoom ratio and show camera properties

Screen.Recording.2024-11-07.at.3.59.30.PM.mov

@davidjiagoogle davidjiagoogle requested review from yasith, Kimblebee and temcguir and removed request for yasith November 8, 2024 19:09
@@ -153,7 +153,7 @@ class CameraXCameraUseCaseTest {
Dispatchers.Default,
constraintsRepository
).apply {
initialize(appSettings, CameraUseCase.UseCaseMode.STANDARD)
initialize(appSettings, CameraUseCase.UseCaseMode.STANDARD) {}
Copy link
Contributor

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants