Merge pull request #2595 from ben8p/isDismissAllowed-bug
listener might be null
This commit is contained in:
commit
270cd6a0ee
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();
|
||||
if(listener != null) {
|
||||
listener.onTouch(this, ev);
|
||||
}
|
||||
return false;
|
||||
case MotionEvent.ACTION_MOVE:
|
||||
if (mIsScrolling) {
|
||||
|
|
Loading…
Reference in a new issue