Closed rasoulinejad closed 6 years ago
same problem
Same issue here
In biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior
line 320 should be
if (mViewDragHelper != null) { mViewDragHelper.processTouchEvent(event); }
Or one could add following code Below this Line:
if (mViewDragHelper == null) {
mViewDragHelper = ViewDragHelper.create(parent, mDragCallback);
}
Same to me :(
For now, we can do the following:
bottomSheet.post(new Runnable() {
@Override
public void run() {
bottomSheetBehavior = ViewPagerBottomSheetBehavior.from(bottomSheet);
}
});
just ported the changes from support lib 27.1.0. please let me know if version 0.0.5 solves your issues
It works for me, thanks @laenger
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.ViewDragHelper.processTouchEvent(android.view.MotionEvent)' on a null object reference at biz.laenger.android.vpbs.ViewPagerBottomSheetBehavior.onTouchEvent(ViewPagerBottomSheetBehavior.java:320)