Fatal Exception: java.lang.RuntimeException: autoFocus failed
at android.hardware.Camera.native_autoFocus(Camera.java)
at android.hardware.Camera.autoFocus + 1382(Camera.java:1382)
at com.documentscanner.views.OpenNoteCameraView.requestManualFocus + 591(OpenNoteCameraView.java:591)
at com.documentscanner.views.OpenNoteCameraView.focus + 188(OpenNoteCameraView.java:188)
at com.documentscanner.views.MainView.focus + 116(MainView.java:116)
at com.documentscanner.views.MainView.onTouchEvent + 56(MainView.java:56)
at android.view.View.dispatchTouchEvent + 13471(View.java:13471)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3216(ViewGroup.java:3216)
at android.view.ViewGroup.dispatchTouchEvent + 2888(ViewGroup.java:2888)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222)
at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904)
at com.android.internal.policy.DecorView.superDispatchTouchEvent + 731(DecorView.java:731)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent + 1869(PhoneWindow.java:1869)
at android.app.Activity.dispatchTouchEvent + 3487(Activity.java:3487)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent + 69(WindowCallbackWrapper.java:69)
at com.android.internal.policy.DecorView.dispatchTouchEvent + 689(DecorView.java:689)
at android.view.View.dispatchPointerEvent + 13719(View.java:13719)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent + 6125(ViewRootImpl.java:6125)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess + 5903(ViewRootImpl.java:5903)
at android.view.ViewRootImpl$InputStage.deliver + 5352(ViewRootImpl.java:5352)
at android.view.ViewRootImpl$InputStage.onDeliverToNext + 5405(ViewRootImpl.java:5405)
at android.view.ViewRootImpl$InputStage.forward + 5371(ViewRootImpl.java:5371)
at android.view.ViewRootImpl$AsyncInputStage.forward + 5530(ViewRootImpl.java:5530)
at android.view.ViewRootImpl$InputStage.apply + 5379(ViewRootImpl.java:5379)
at android.view.ViewRootImpl$AsyncInputStage.apply + 5587(ViewRootImpl.java:5587)
at android.view.ViewRootImpl$InputStage.deliver + 5352(ViewRootImpl.java:5352)
at android.view.ViewRootImpl$InputStage.onDeliverToNext + 5405(ViewRootImpl.java:5405)
at android.view.ViewRootImpl$InputStage.forward + 5371(ViewRootImpl.java:5371)
at android.view.ViewRootImpl$InputStage.apply + 5379(ViewRootImpl.java:5379)
at android.view.ViewRootImpl$InputStage.deliver + 5352(ViewRootImpl.java:5352)
at android.view.ViewRootImpl.deliverInputEvent + 8412(ViewRootImpl.java:8412)
at android.view.ViewRootImpl.doProcessInputEvents + 8345(ViewRootImpl.java:8345)
at android.view.ViewRootImpl.enqueueInputEvent + 8298(ViewRootImpl.java:8298)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent + 8527(ViewRootImpl.java:8527)
at android.view.InputEventReceiver.dispatchInputEvent + 198(InputEventReceiver.java:198)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next + 326(MessageQueue.java:326)
at android.os.Looper.loop + 181(Looper.java:181)
at android.app.ActivityThread.main + 7073(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 493(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main + 975(ZygoteInit.java:975)
Fatal Exception: java.lang.RuntimeException: autoFocus failed at android.hardware.Camera.native_autoFocus(Camera.java) at android.hardware.Camera.autoFocus + 1382(Camera.java:1382) at com.documentscanner.views.OpenNoteCameraView.requestManualFocus + 591(OpenNoteCameraView.java:591) at com.documentscanner.views.OpenNoteCameraView.focus + 188(OpenNoteCameraView.java:188) at com.documentscanner.views.MainView.focus + 116(MainView.java:116) at com.documentscanner.views.MainView.onTouchEvent + 56(MainView.java:56) at android.view.View.dispatchTouchEvent + 13471(View.java:13471) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3216(ViewGroup.java:3216) at android.view.ViewGroup.dispatchTouchEvent + 2888(ViewGroup.java:2888) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at android.view.ViewGroup.dispatchTransformedTouchEvent + 3222(ViewGroup.java:3222) at android.view.ViewGroup.dispatchTouchEvent + 2904(ViewGroup.java:2904) at com.android.internal.policy.DecorView.superDispatchTouchEvent + 731(DecorView.java:731) at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent + 1869(PhoneWindow.java:1869) at android.app.Activity.dispatchTouchEvent + 3487(Activity.java:3487) at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent + 69(WindowCallbackWrapper.java:69) at com.android.internal.policy.DecorView.dispatchTouchEvent + 689(DecorView.java:689) at android.view.View.dispatchPointerEvent + 13719(View.java:13719) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent + 6125(ViewRootImpl.java:6125) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess + 5903(ViewRootImpl.java:5903) at android.view.ViewRootImpl$InputStage.deliver + 5352(ViewRootImpl.java:5352) at android.view.ViewRootImpl$InputStage.onDeliverToNext + 5405(ViewRootImpl.java:5405) at android.view.ViewRootImpl$InputStage.forward + 5371(ViewRootImpl.java:5371) at android.view.ViewRootImpl$AsyncInputStage.forward + 5530(ViewRootImpl.java:5530) at android.view.ViewRootImpl$InputStage.apply + 5379(ViewRootImpl.java:5379) at android.view.ViewRootImpl$AsyncInputStage.apply + 5587(ViewRootImpl.java:5587) at android.view.ViewRootImpl$InputStage.deliver + 5352(ViewRootImpl.java:5352) at android.view.ViewRootImpl$InputStage.onDeliverToNext + 5405(ViewRootImpl.java:5405) at android.view.ViewRootImpl$InputStage.forward + 5371(ViewRootImpl.java:5371) at android.view.ViewRootImpl$InputStage.apply + 5379(ViewRootImpl.java:5379) at android.view.ViewRootImpl$InputStage.deliver + 5352(ViewRootImpl.java:5352) at android.view.ViewRootImpl.deliverInputEvent + 8412(ViewRootImpl.java:8412) at android.view.ViewRootImpl.doProcessInputEvents + 8345(ViewRootImpl.java:8345) at android.view.ViewRootImpl.enqueueInputEvent + 8298(ViewRootImpl.java:8298) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent + 8527(ViewRootImpl.java:8527) at android.view.InputEventReceiver.dispatchInputEvent + 198(InputEventReceiver.java:198) at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next + 326(MessageQueue.java:326) at android.os.Looper.loop + 181(Looper.java:181) at android.app.ActivityThread.main + 7073(ActivityThread.java:7073) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 493(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main + 975(ZygoteInit.java:975)