* commit '91ff85da1a2a106c8ddb5e204928e0d6ef094283': Fix touch intercept bug in ResolverDrawerLayout
This commit is contained in:
@@ -217,8 +217,9 @@ public class ResolverDrawerLayout extends ViewGroup {
|
|||||||
mInitialTouchX = x;
|
mInitialTouchX = x;
|
||||||
mInitialTouchY = mLastTouchY = y;
|
mInitialTouchY = mLastTouchY = y;
|
||||||
mActivePointerId = ev.getPointerId(0);
|
mActivePointerId = ev.getPointerId(0);
|
||||||
mIsDragging = findChildUnder(mInitialTouchX, mInitialTouchY) != null;
|
final boolean hitView = findChildUnder(mInitialTouchX, mInitialTouchY) != null;
|
||||||
handled = (!mIsDragging && mOnDismissedListener != null) || mCollapsibleHeight > 0;
|
handled = (!hitView && mOnDismissedListener != null) || mCollapsibleHeight > 0;
|
||||||
|
mIsDragging = hitView && handled;
|
||||||
abortAnimation();
|
abortAnimation();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user