etsy/AndroidStaggeredGrid

Exception when using hardware scroll wheel

deinlandel opened this issue · 0 comments

How to reproduce (Android 4.1.1+):

  • create and populate staggered grid
  • launch app on device which supports scroll using wheel (asus transformer, android emulator e.g. genymotion)
  • use scroll wheel (mouse scroll on emulator) while focus is on starggered grid

Activity will crash with the following exception:

java.lang.AbstractMethodError: abstract method not implemented
        at android.widget.AbsListView.fillGap(AbsListView.java)
        at android.widget.AbsListView.trackMotionScroll(AbsListView.java:5036)
        at android.widget.AbsListView.onGenericMotionEvent(AbsListView.java:3746)
        at android.view.View.dispatchGenericMotionEventInternal(View.java:7222)
        at android.view.View.dispatchGenericMotionEvent(View.java:7203)
        at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1787)
        at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1742)
        at android.view.View.dispatchGenericMotionEvent(View.java:7196)
        at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1787)
        at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1742)
        at android.view.View.dispatchGenericMotionEvent(View.java:7196)
        at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1787)
        at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1742)
        at android.view.View.dispatchGenericMotionEvent(View.java:7196)
        at android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1787)
        at android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1742)
        at android.view.View.dispatchGenericMotionEvent(View.java:7196)
        at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchGenericMotionEvent(PhoneWindow.java:1933)
        at com.android.internal.policy.impl.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1389)
        at android.app.Activity.dispatchGenericMotionEvent(Activity.java:2432)
        at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchGenericMotionEvent(PhoneWindow.java:1887)
        at android.view.View.dispatchPointerEvent(View.java:7309)
        at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3172)
        at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3117)
        at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4153)
        at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4132)
        at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4224)
        at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
        at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:125)
        at android.os.Looper.loop(Looper.java:124)
        at android.app.ActivityThread.main(ActivityThread.java:4745)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:511)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
        at dalvik.system.NativeStart.main(Native Method)