Skip to content

Delete concurrent camera quick setting#512

Open
Kimblebee wants to merge 6 commits into
mainfrom
kim/feature/concurrent-camera-settings
Open

Delete concurrent camera quick setting#512
Kimblebee wants to merge 6 commits into
mainfrom
kim/feature/concurrent-camera-settings

Conversation

@Kimblebee
Copy link
Copy Markdown
Collaborator

Deletes the concurrent camera quick setting in anticipation of a quick settings UI refactor wherein it is removed. The concurrent camerea setting has been made available in the main settings screen.

Kimblebee added 2 commits May 11, 2026 14:31
    Migrates the concurrent camera toggle from the Quick Settings bottom
  sheet
    to the main Settings screen.

    Changes:
    - Added ConcurrentCameraMode to JcaSettings proto and SettingsRepository.
    - Updated CameraSystem to apply concurrent camera setting changes.
    - Added ConcurrentCameraSetting UI and state to feature/settings.
    - Removed concurrent camera toggle from QuickSettingsScreen.
    - Updated ConcurrentCameraTest to toggle the setting via Settings screen.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the Concurrent Camera setting from the Quick Settings menu to the main Settings screen. The changes include updating the proto datastore for persistence, implementing the setting toggle in the UI, and refactoring instrumented tests to verify the setting via the Settings screen. Reviewer feedback suggests using more idiomatic Compose testing matchers like assertIsOn(), removing redundant support checks in tests, and applying the internal visibility modifier to new functions and composables. Additionally, the reviewer noted a potentially missing file (CameraAppSettings) and emphasized the requirement to synchronize default values across the datastore and the app's default settings.

maxVideoDurationMillis = it.maxVideoDurationMillis,
videoQuality = VideoQuality.fromProto(it.videoQuality),
audioEnabled = it.audioEnabledStatus,
concurrentCameraMode = when (it.concurrentCameraModeStatus) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The CameraAppSettings data class appears to have been modified to include the concurrentCameraMode property, but the file itself is missing from this pull request. Please ensure all modified files are included. Additionally, verify that the default value for this new setting is synchronized in both JcaSettingsSerializer and the CameraAppSettings default instance.

References
  1. When a new setting is added to the proto datastore, its default value must be defined and synchronized in JcaSettingsSerializer and CameraAppSettings. (link)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean by file is missing? the concurrentCameraModeStatus is an auto generated file

Comment thread app/src/androidTest/java/com/google/jetpackcamera/ConcurrentCameraTest.kt Outdated
Comment thread app/src/androidTest/java/com/google/jetpackcamera/ConcurrentCameraTest.kt Outdated
Comment thread app/src/androidTest/java/com/google/jetpackcamera/ConcurrentCameraTest.kt Outdated
@Kimblebee Kimblebee changed the title Delete oncurrent camera quick setting Delete concurrent camera quick setting May 19, 2026
@Kimblebee Kimblebee marked this pull request as ready for review May 19, 2026 15:24
@Kimblebee Kimblebee force-pushed the kim/feature/concurrent-camera-settings branch from 1079495 to 42d1f7a Compare May 20, 2026 16:59
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.

1 participant