From 2c26981fd0bf285382fed6a8ea3c12de94a3ceb3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 18 Jun 2018 23:16:25 +0200 Subject: [PATCH] flip the icons used at toggle front/rear camera --- .../com/simplemobiletools/camera/activities/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt index 842897c2..52d4d909 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -258,8 +258,8 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener { toggle_flash.setImageResource(flashDrawable) } - fun updateCameraIcon(showFront: Boolean) { - toggle_camera.setImageResource(if (showFront) R.drawable.ic_camera_front else R.drawable.ic_camera_rear) + fun updateCameraIcon(isUsingFrontCamera: Boolean) { + toggle_camera.setImageResource(if (isUsingFrontCamera) R.drawable.ic_camera_rear else R.drawable.ic_camera_front) } private fun shutterPressed() {