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) {
|
switch (action) {
|
||||||
case MotionEvent.ACTION_DOWN:
|
case MotionEvent.ACTION_DOWN:
|
||||||
mDownX = ev.getRawX();
|
mDownX = ev.getRawX();
|
||||||
|
if(listener != null) {
|
||||||
listener.onTouch(this, ev);
|
listener.onTouch(this, ev);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
case MotionEvent.ACTION_MOVE:
|
case MotionEvent.ACTION_MOVE:
|
||||||
if (mIsScrolling) {
|
if (mIsScrolling) {
|
||||||
|
|
Loading…
Reference in a new issue