Merge pull request #2595 from ben8p/isDismissAllowed-bug

listener might be null
This commit is contained in:
vshcherb 2016-05-25 11:34:11 +02:00
commit 270cd6a0ee

View file

@ -56,7 +56,9 @@ public class InterceptorFrameLayout extends FrameLayout {
switch (action) {
case MotionEvent.ACTION_DOWN:
mDownX = ev.getRawX();
listener.onTouch(this, ev);
if(listener != null) {
listener.onTouch(this, ev);
}
return false;
case MotionEvent.ACTION_MOVE:
if (mIsScrolling) {