commit | c1fa5fb32ace119eb25338bc50eff2bd3d2e4510 | [log] [tgz] |
---|---|---|
author | LuK1337 <priv.luk@gmail.com> | Sat Jan 20 23:26:44 2024 +0100 |
committer | LuK1337 <priv.luk@gmail.com> | Sat Jan 20 23:42:28 2024 +0100 |
tree | 2ddee6876ceb429d1c18813ef21a9d21dc358d99 | |
parent | b4a5ee6300603c04aa7a1489ce0d5778b5359c18 [diff] |
Aperture: Address missing opt-in decorator warning in getMode() Change-Id: Iaf19cd7eedba1616470f48e489d315bef6da2172
diff --git a/app/src/main/java/org/lineageos/aperture/models/VideoStabilizationMode.kt b/app/src/main/java/org/lineageos/aperture/models/VideoStabilizationMode.kt index 13de65c..39b34ca 100644 --- a/app/src/main/java/org/lineageos/aperture/models/VideoStabilizationMode.kt +++ b/app/src/main/java/org/lineageos/aperture/models/VideoStabilizationMode.kt
@@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023 The LineageOS Project + * SPDX-FileCopyrightText: 2023-2024 The LineageOS Project * SPDX-License-Identifier: Apache-2.0 */ @@ -13,6 +13,7 @@ ON_PREVIEW; companion object { + @androidx.camera.camera2.interop.ExperimentalCamera2Interop fun getMode(camera: Camera) = when { camera.supportedVideoStabilizationModes.contains(ON_PREVIEW) -> ON_PREVIEW camera.supportedVideoStabilizationModes.contains(ON) -> ON