From e99665553ca2ef0cac9fac56c744770e0e83a698 Mon Sep 17 00:00:00 2001 From: Kyle Corry Date: Sat, 18 Nov 2023 13:01:35 -0500 Subject: [PATCH] Remove check for camera availability --- .../tools/augmented_reality/AugmentedRealityFragment.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/AugmentedRealityFragment.kt b/app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/AugmentedRealityFragment.kt index c444740d4..208060744 100644 --- a/app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/AugmentedRealityFragment.kt +++ b/app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/AugmentedRealityFragment.kt @@ -12,7 +12,6 @@ import androidx.core.graphics.drawable.toBitmapOrNull import androidx.core.view.isInvisible import androidx.core.view.isVisible import androidx.core.view.updateLayoutParams -import com.kylecorry.andromeda.camera.Camera import com.kylecorry.andromeda.core.coroutines.onDefault import com.kylecorry.andromeda.core.coroutines.onMain import com.kylecorry.andromeda.core.system.Resources @@ -121,8 +120,6 @@ class AugmentedRealityFragment : BoundFragment( super.onResume() binding.arView.start() - isCameraEnabled = Camera.isAvailable(requireContext()) - binding.cameraToggle.isVisible = isCameraEnabled if (isCameraEnabled) { startCamera() } else {