fix: disable jpg max option in night vision mode

This commit is contained in:
zhoubinjia committed 2026-11-12 16:43:55 +08:00
1 parent d51628e94f
commit c0df537e97
2 files changed
+3 -1

No files matched your search

@@ -1763,6 +1763,7 @@ fun CameraScreen(
CameraTopSheet(
visible = activePanel == ActivePanel.SETTINGS,
captureMode = state.captureMode,
nightVisionEnabled = state.nightVisionEnabled,
aspectRatio = state.aspectRatio,
topSheetAspectRatios = topSheetAspectRatios,
onAspectRatioChange = { runPreviewTransition { viewModel.setAspectRatio(it) } },
@@ -61,6 +61,7 @@ private val CameraTopSheetContentTopPadding = 32.dp
fun CameraTopSheet(
visible: Boolean,
captureMode: CaptureMode,
nightVisionEnabled: Boolean,
aspectRatio: AspectRatio,
topSheetAspectRatios: List<AspectRatio>,
onAspectRatioChange: (AspectRatio) -> Unit,
@@ -201,7 +202,7 @@ fun CameraTopSheet(
onClick = { showRenderingEngineSheet = true },
modifier = itemModifier
)
} else {
} else if (!nightVisionEnabled) {
QuickSettingToggle(
title = stringResource(R.string.settings_use_jpg_max),
checked = useJpgMax,