fix toggling toggle camera visibility

This commit is contained in:
tibbi 2017-03-25 18:37:08 +01:00
parent ba979443ad
commit 0bead6f1fb
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
} }
private fun showToggleCameraIfNeeded() { private fun showToggleCameraIfNeeded() {
toggle_camera.beInvisibleIf(Camera.getNumberOfCameras() > 1) toggle_camera.beInvisibleIf(Camera.getNumberOfCameras() <= 1)
} }
override fun onPause() { override fun onPause() {