From ec4e965c7b12819e8ab3223fdc0f27af08ef4151 Mon Sep 17 00:00:00 2001 From: Christophe BOUCAUT Date: Thu, 12 Feb 2015 09:21:49 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20pour=20n'afficher=20le=20bouton=20?= =?UTF-8?q?de=20switch=20de=20flash=20que=20si=20on=20a=20un=20flash=20et?= =?UTF-8?q?=20si=20on=20l'a=20demand=C3=A9=20dans=20le=20plugin.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/org/geneanet/customcamera/CameraActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java b/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java index 5b3ea77..23fc0a2 100644 --- a/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java +++ b/src/android/customCamera/src/org/geneanet/customcamera/CameraActivity.java @@ -577,7 +577,7 @@ public class CameraActivity extends Activity { zoomLevel.setVisibility(View.VISIBLE); } - if (this.getIntent().getBooleanExtra("switchFlash", true)) { + if (this.getIntent().getBooleanExtra("switchFlash", true) && hasFlash()) { flash.setVisibility(View.VISIBLE); } else { flash.setVisibility(View.INVISIBLE);