Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ae04475 authored by Mark Harman's avatar Mark Harman
Browse files

Add note that we still need this hack for torch bug for Nokia 8!

parent 924bd26e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3044,7 +3044,7 @@ public class CameraController2 extends CameraController {
			updateUseFakePrecaptureMode(flash_value);
			
			if( camera_settings.flash_value.equals("flash_torch") && !flash_value.equals("flash_off") ) {
				// hack - if switching to something other than flash_off, we first need to turn torch off, otherwise torch remains on (at least on Nexus 6)
				// hack - if switching to something other than flash_off, we first need to turn torch off, otherwise torch remains on (at least on Nexus 6 and Nokia 8)
				camera_settings.flash_value = "flash_off";
				camera_settings.setAEMode(previewBuilder, false);
				CaptureRequest request = previewBuilder.build();