am 67af29f6: Merge "Fix touch intercept bug in ResolverDrawerLayout" into lmp-mr1-dev

* commit '67af29f6d642c3c578ee1b5af70dc525955982a5':
  Fix touch intercept bug in ResolverDrawerLayout
This commit is contained in:
Adam Powell
2014-12-16 18:08:34 +00:00
committed by Android Git Automerger

View File

@@ -217,8 +217,9 @@ public class ResolverDrawerLayout extends ViewGroup {
mInitialTouchX = x;
mInitialTouchY = mLastTouchY = y;
mActivePointerId = ev.getPointerId(0);
mIsDragging = findChildUnder(mInitialTouchX, mInitialTouchY) != null;
handled = (!mIsDragging && mOnDismissedListener != null) || mCollapsibleHeight > 0;
final boolean hitView = findChildUnder(mInitialTouchX, mInitialTouchY) != null;
handled = (!hitView && mOnDismissedListener != null) || mCollapsibleHeight > 0;
mIsDragging = hitView && handled;
abortAnimation();
}
break;