Loading packages/SystemUI/src/com/android/systemui/SwipeHelper.java +11 −2 Original line number Diff line number Diff line Loading @@ -462,12 +462,21 @@ public class SwipeHelper implements Gefingerpoken { int duration = SNAP_ANIM_LEN; anim.setDuration(duration); anim.addListener(new AnimatorListenerAdapter() { boolean wasCancelled = false; @Override public void onAnimationCancel(Animator animator) { wasCancelled = true; } @Override public void onAnimationEnd(Animator animator) { mSnappingChild = false; if (!wasCancelled) { updateSwipeProgressFromOffset(animView, canBeDismissed); mCallback.onChildSnappedBack(animView, targetLeft); } } }); prepareSnapBackAnimation(animView, anim); mSnappingChild = true; Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationMenuRow.java +4 −0 Original line number Diff line number Diff line Loading @@ -317,6 +317,10 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl } private void dismiss(View animView, float velocity) { if (mFadeAnimator != null) { mFadeAnimator.cancel(); } mHandler.removeCallbacks(mCheckForDrag); mMenuSnappedTo = false; mDismissing = true; mSwipeHelper.dismiss(animView, velocity); Loading Loading
packages/SystemUI/src/com/android/systemui/SwipeHelper.java +11 −2 Original line number Diff line number Diff line Loading @@ -462,12 +462,21 @@ public class SwipeHelper implements Gefingerpoken { int duration = SNAP_ANIM_LEN; anim.setDuration(duration); anim.addListener(new AnimatorListenerAdapter() { boolean wasCancelled = false; @Override public void onAnimationCancel(Animator animator) { wasCancelled = true; } @Override public void onAnimationEnd(Animator animator) { mSnappingChild = false; if (!wasCancelled) { updateSwipeProgressFromOffset(animView, canBeDismissed); mCallback.onChildSnappedBack(animView, targetLeft); } } }); prepareSnapBackAnimation(animView, anim); mSnappingChild = true; Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationMenuRow.java +4 −0 Original line number Diff line number Diff line Loading @@ -317,6 +317,10 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl } private void dismiss(View animView, float velocity) { if (mFadeAnimator != null) { mFadeAnimator.cancel(); } mHandler.removeCallbacks(mCheckForDrag); mMenuSnappedTo = false; mDismissing = true; mSwipeHelper.dismiss(animView, velocity); Loading