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

Commit 09a5b550 authored by Mark Harman's avatar Mark Harman
Browse files

Catch IllegalArgumentException.

parent 70894969
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3736,6 +3736,16 @@ public class CameraController2 extends CameraController {
			e.printStackTrace();
			throw new CameraControllerException();
		}
		catch(IllegalArgumentException e) {
			// have had crashes from Google Play, from both createConstrainedHighSpeedCaptureSession and
			// createCaptureSession
			if( MyDebug.LOG ) {
				Log.e(TAG, "IllegalArgumentException trying to create capture session");
				Log.e(TAG, "message: " + e.getMessage());
			}
			e.printStackTrace();
			throw new CameraControllerException();
		}
	}

	@Override