Skip to content

Commit

Permalink
Remove check for camera availability
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Nov 18, 2023
1 parent 637cb7d commit e996655
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -121,8 +120,6 @@ class AugmentedRealityFragment : BoundFragment<FragmentAugmentedRealityBinding>(
super.onResume()

binding.arView.start()
isCameraEnabled = Camera.isAvailable(requireContext())
binding.cameraToggle.isVisible = isCameraEnabled
if (isCameraEnabled) {
startCamera()
} else {
Expand Down

0 comments on commit e996655

Please sign in to comment.