listener maybe null

listener maybe null if plugin method isDismissAllowed return true
This commit is contained in:
Benjamin Santalucia 2016-05-25 11:30:05 +02:00
parent 61bfbdc3ed
commit 416b911f17

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) {