Aperture: Hide camera mode highlight button in single capture mode too
Change-Id: Ie98df0d4f781a626b2c548a0df36f0bca92d6650
diff --git a/app/src/main/java/org/lineageos/aperture/ui/CameraModeSelectorLayout.kt b/app/src/main/java/org/lineageos/aperture/ui/CameraModeSelectorLayout.kt
index c61207a..a7f22e1 100644
--- a/app/src/main/java/org/lineageos/aperture/ui/CameraModeSelectorLayout.kt
+++ b/app/src/main/java/org/lineageos/aperture/ui/CameraModeSelectorLayout.kt
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022-2023 The LineageOS Project
+ * SPDX-FileCopyrightText: 2022-2024 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
@@ -124,6 +124,7 @@
val inSingleCaptureMode = cameraViewModel?.inSingleCaptureMode?.value ?: return
val cameraState = cameraViewModel?.cameraState?.value ?: return
+ cameraModeHighlightButton.isInvisible = cameraState.isRecordingVideo || inSingleCaptureMode
cameraToButton.forEach {
it.value.isInvisible = cameraState.isRecordingVideo || inSingleCaptureMode
}