flip the icons used at toggle front/rear camera

This commit is contained in:
tibbi 2018-06-18 23:16:25 +02:00
parent 7e42da897a
commit 2c26981fd0
1 changed files with 2 additions and 2 deletions

View File

@ -258,8 +258,8 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener {
toggle_flash.setImageResource(flashDrawable) toggle_flash.setImageResource(flashDrawable)
} }
fun updateCameraIcon(showFront: Boolean) { fun updateCameraIcon(isUsingFrontCamera: Boolean) {
toggle_camera.setImageResource(if (showFront) R.drawable.ic_camera_front else R.drawable.ic_camera_rear) toggle_camera.setImageResource(if (isUsingFrontCamera) R.drawable.ic_camera_rear else R.drawable.ic_camera_front)
} }
private fun shutterPressed() { private fun shutterPressed() {