Aperture: Fix some warnings in PhysicalCamera
Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: I99c4dbd6eb8c8468cec9dd0837e0057cbf7946ad
diff --git a/app/src/main/java/org/lineageos/aperture/utils/PhysicalCamera.kt b/app/src/main/java/org/lineageos/aperture/utils/PhysicalCamera.kt
index f100a41..f6036f0 100644
--- a/app/src/main/java/org/lineageos/aperture/utils/PhysicalCamera.kt
+++ b/app/src/main/java/org/lineageos/aperture/utils/PhysicalCamera.kt
@@ -9,13 +9,14 @@
import android.hardware.camera2.CameraCharacteristics
import androidx.camera.camera2.interop.Camera2CameraInfo
import androidx.camera.core.CameraInfo
+import androidx.camera.video.Quality
import androidx.camera.video.QualitySelector
/**
* Class representing a physical device camera
*/
@androidx.camera.camera2.interop.ExperimentalCamera2Interop
-class PhysicalCamera(val cameraInfo: CameraInfo) {
+class PhysicalCamera(cameraInfo: CameraInfo) {
/**
* Camera2 CameraInfo
*/
@@ -45,5 +46,6 @@
/**
* Supported video qualities
*/
- val supportedVideoQualities = QualitySelector.getSupportedQualities(cameraInfo)
+ val supportedVideoQualities: MutableList<Quality> =
+ QualitySelector.getSupportedQualities(cameraInfo)
}