Hello everyone!
I don't know if it is caused by the ahviewpager class
Just a few more zoom gestures will cause the following error
java.lang.IllegalArgumentException: pointerIndex out of range
at android.view.MotionEvent.nativeGetAxisValue(Native Method)
at android.view.MotionEvent.getX(MotionEvent.java:2367)
at androidx.viewpager.widget.ViewPager.onInterceptTouchEvent(ViewPager.java:2072)
at de.amberhome.viewpager.CustomViewPager.onInterceptTouchEvent(CustomViewPager.java:34)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2629)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3082)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2775)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3082)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2775)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3082)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2775)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3082)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2775)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:487)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1851)
at android.app.Activity.dispatchTouchEvent(Activity.java:4049)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:445)
at android.view.View.dispatchPointerEvent(View.java:13699)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5571)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5371)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4872)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4925)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4891)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5031)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4899)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5088)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4872)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4925)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4891)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4899)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4872)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7644)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7613)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7574)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7774)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:250)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:213)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:7720)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:7798)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1031)
at android.view.Choreographer.doCallbacks(Choreographer.java:854)
at android.view.Choreographer.doFrame(Choreographer.java:782)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1016)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7520)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
I don't know if it is caused by the ahviewpager class
Just a few more zoom gestures will cause the following error
java.lang.IllegalArgumentException: pointerIndex out of range
at android.view.MotionEvent.nativeGetAxisValue(Native Method)
at android.view.MotionEvent.getX(MotionEvent.java:2367)
at androidx.viewpager.widget.ViewPager.onInterceptTouchEvent(ViewPager.java:2072)
at de.amberhome.viewpager.CustomViewPager.onInterceptTouchEvent(CustomViewPager.java:34)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2629)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3082)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2775)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3082)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2775)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3082)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2775)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3082)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2775)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:487)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1851)
at android.app.Activity.dispatchTouchEvent(Activity.java:4049)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:445)
at android.view.View.dispatchPointerEvent(View.java:13699)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5571)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5371)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4872)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4925)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4891)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5031)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4899)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5088)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4872)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4925)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4891)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4899)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4872)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7644)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7613)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7574)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7774)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:250)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:213)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:7720)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:7798)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1031)
at android.view.Choreographer.doCallbacks(Choreographer.java:854)
at android.view.Choreographer.doFrame(Choreographer.java:782)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1016)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7520)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)