listener maybe null
listener maybe null if plugin method isDismissAllowed return true
This commit is contained in:
parent
61bfbdc3ed
commit
416b911f17
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue