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

Commit 77159637 authored by Mark Harman's avatar Mark Harman
Browse files

Catch IllegalStateException for focusing.

parent 575b0eb9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@
<pre>
Version 1.55 (Work in progress)

FIXED   Fixed possible crash related to focusing with Camera2 API.
FIXED   Dialog for poor magnetic sensor dialog wasn't showing any text.
FIXED   Ensure the info text for capture progress in x- extension modes remains visible until 100%.
ADDED   More crop guides: 65:24 and 3:1.
+2 −1
Original line number Diff line number Diff line
@@ -6916,7 +6916,8 @@ public class CameraController2 extends CameraController {
                afBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, CameraMetadata.CONTROL_AF_TRIGGER_START);
                capture(afBuilder.build());
            }
            catch(CameraAccessException e) {
            catch(CameraAccessException | IllegalStateException e) {
                // got IllegalStateException as a Google Play exception - this means the capture session is already closed
                MyDebug.logStackTrace(TAG, "failed to autofocus", e);
                state = STATE_NORMAL;
                precapture_state_change_time_ms = -1;