am 51309c7a: Merge "Fix not being able to dismiss notifications with tap." into lmp-preview-dev
* commit '51309c7ad93b2cbbe8fec828a49542d1207c4aa5': Fix not being able to dismiss notifications with tap.
This commit is contained in:
@@ -437,7 +437,7 @@ public class ExpandHelper implements Gefingerpoken {
|
||||
break;
|
||||
}
|
||||
mLastMotionY = ev.getRawY();
|
||||
return true;
|
||||
return mResizedView != null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -162,7 +162,7 @@ public abstract class PanelView extends FrameLayout {
|
||||
if (mHeightAnimator != null) {
|
||||
mHeightAnimator.cancel(); // end any outstanding animations
|
||||
}
|
||||
mTouchSlopExceeded = true;
|
||||
mTouchSlopExceeded = (mHeightAnimator != null && !mHintAnimationRunning);
|
||||
onTrackingStarted();
|
||||
}
|
||||
if (mExpandedHeight == 0) {
|
||||
@@ -219,7 +219,8 @@ public abstract class PanelView extends FrameLayout {
|
||||
case MotionEvent.ACTION_CANCEL:
|
||||
mTrackingPointer = -1;
|
||||
trackMovement(event);
|
||||
if (mTracking && mTouchSlopExceeded) {
|
||||
if ((mTracking && mTouchSlopExceeded)
|
||||
|| event.getActionMasked() == MotionEvent.ACTION_CANCEL) {
|
||||
float vel = getCurrentVelocity();
|
||||
boolean expand = flingExpands(vel);
|
||||
onTrackingStopped(expand);
|
||||
|
||||
Reference in New Issue
Block a user