fix toggling toggle camera visibility
This commit is contained in:
parent
ba979443ad
commit
0bead6f1fb
|
@ -464,7 +464,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
|
|||
}
|
||||
|
||||
private fun showToggleCameraIfNeeded() {
|
||||
toggle_camera.beInvisibleIf(Camera.getNumberOfCameras() > 1)
|
||||
toggle_camera.beInvisibleIf(Camera.getNumberOfCameras() <= 1)
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
|
|
Loading…
Reference in New Issue