Fix issue where menu items visible on 'closed' notification on lockscreen

Needed to cancel / remove check for the fade in animator when the
notification gets snapped back since the icons shouldn't show in this case.

Test: manual
Bug: 37260033
Change-Id: I5b5ce51f930025dc819a8578f2285c60fa041e7c
This commit is contained in:
Mady Mellor
2017-04-12 11:21:56 -07:00
parent 4a30689414
commit 9e87dd0d31

View File

@@ -273,6 +273,10 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl
}
private void snapBack(View animView, float velocity) {
if (mFadeAnimator != null) {
mFadeAnimator.cancel();
}
mHandler.removeCallbacks(mCheckForDrag);
mMenuSnappedTo = false;
mSnapping = true;
mSwipeHelper.snap(animView, 0 /* leftTarget */, velocity);