There are some ViewGroups (ones that utilize onInterceptTouchEvent) that throw exceptions when a PhotoView is placed within them, most notably ViewPager and DrawerLayout. This is a framework issue that has not been resolved.
Some exceptions are already caught by the HackyViewPager class, which covers the first component. It seems though that the DrawerLayout is now faulty for the remaining crashes.
Theoretically it's possible to pass your own DrawerLayout implementation to the DrawerBuilder and use this one. Note the provided layout must follow the same structure as the MaterialDrawer intern one.
Still waiting for an answer, but this seems to be the only way to go. We'd create a HackyDrawerLayout (implements DrawerLayout) that would intercept the exceptions. Let's wait & see
@MrMitch reported several crashes related to
ViewDragHelper
inActivity_GraphView
:android.support.v4.widget.ViewDragHelper.saveLastMotion
android.support.v4.widget.ViewDragHelper.clearMotionHistory
android.support.v4.widget.ViewDragHelper.shouldInterceptTouchEvent
They are actually related to chrisbanes/PhotoView library and has been documented in Issues With ViewGroups:
Some exceptions are already caught by the HackyViewPager class, which covers the first component. It seems though that the DrawerLayout is now faulty for the remaining crashes.
Unfortunately, DrawerLayouts are automatically inflated by mikepenz/MaterialDrawer library so we cannot replace those. Project's owner said though that this could be possible:
Still waiting for an answer, but this seems to be the only way to go. We'd create a HackyDrawerLayout (implements DrawerLayout) that would intercept the exceptions. Let's wait & see