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

Commit 22a38c94 authored by Mark Harman's avatar Mark Harman
Browse files

Catch exceptions when not waiting for preview on UI thread.

parent fda15ab6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6271,7 +6271,9 @@ public class CameraController2 extends CameraController {
                        }
                        function.call();
                    }
                    catch(CameraAccessException e) {
                    catch(CameraAccessException | NullPointerException | IllegalArgumentException e) {
                        // see notes below in createCaptureSession() for why we also catch NullPointerException and IllegalArgumentException
                        // need to catch separately when wait_until_started==false due to this running on a background thread
                        Log.e(TAG, "exception create extension session on background thread");
                        e.printStackTrace();
                        //myStateCallback.onConfigureFailed();