Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed a bug in SlidingUpPaneLayout where the parent (DrawerLayout for…
… example) would still attempt to intercept touch events when dragging the drag view
  • Loading branch information
Matt Oakes authored and matt-oakes committed Oct 13, 2014
commit 3ee7160fc47bb81ef51a94f70d26e43bf9dcfd1b
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.view.ViewParent;

import com.nineoldandroids.view.animation.AnimatorProxy;
import com.sothree.slidinguppanel.library.R;
Expand Down Expand Up @@ -777,7 +778,14 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
}
}

return mDragHelper.shouldInterceptTouchEvent(ev);
final boolean shouldInterceptTouchEvent = mDragHelper.shouldInterceptTouchEvent(ev);

ViewParent parent = getParent();
if (parent != null) {
parent.requestDisallowInterceptTouchEvent(shouldInterceptTouchEvent);
}

return shouldInterceptTouchEvent;
}

@Override
Expand Down