Skip to content

Delete concurrent camera quick setting#512

Merged
Kimblebee merged 16 commits into
mainfrom
kim/feature/concurrent-camera-settings
Jun 10, 2026
Merged

Delete concurrent camera quick setting#512
Kimblebee merged 16 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.

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

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.

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.

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
@temcguir temcguir removed their request for review June 1, 2026 23:09
Comment thread app/src/androidTest/java/com/google/jetpackcamera/ConcurrentCameraTest.kt Outdated
@Kimblebee Kimblebee force-pushed the kim/feature/concurrent-camera-settings branch from a539a08 to 7d8566c Compare June 4, 2026 14:47
Kimblebee added 8 commits June 4, 2026 07:56
    - Consolidated rationales in SettingsUiState: removed redundant
      `ConcurrentCameraStreamConfigRationale` and merged it into
      `ConcurrentCameraDisabledRationale` with a specific reason string.
    - Renamed `ConcurrentCameraUnsupportedRationale` to
      `ConcurrentCameraActiveRationale` to better clarify its meaning
      (disabled because concurrent camera is active).
    - Improved the phrasing of the stream configuration conflict error message
      to "Single Stream does not support concurrent camera" for clarity.
    - Restricted visibility of the `SettingsList` Composable to `internal`.
    - Cleaned up debug log statement in `SettingsViewModel.setConcurrentCameraMode`.
    - Simplified integration tests in `CameraAppSettingsViewModelTest` by
      introducing a `createViewModelWithConstraints` helper, reducing setup
      duplication across 9 test cases.
    - Optimized UI tests in `ConcurrentCameraTest` by combining navigations to
      the settings screen, reducing test execution times.
@Kimblebee Kimblebee merged commit c9e9606 into main Jun 10, 2026
11 checks passed
@Kimblebee Kimblebee deleted the kim/feature/concurrent-camera-settings branch June 10, 2026 23:16
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