Skip to content
Snippets Groups Projects
Commit a48fbe68 authored by Riley Jones's avatar Riley Jones
Browse files

Apply FAB fade effect in more cases

Adds extra logic to queue up the fade effect whenever the user releases the FAB,
so long as they didn't drop the FAB onto one of the magnetized buttons.

Bug: 343635353
Test: install & check manually

Change-Id: Iad6ce282ae333523112fa5a2d7e09cc81516c5ed
parent d128659f
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,7 @@ class MenuListViewTouchHandler implements RecyclerView.OnItemTouchListener {
mVelocityTracker.computeCurrentVelocity(VELOCITY_UNIT_SECONDS);
mMenuAnimationController.flingMenuThenSpringToEdge(endX,
mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity());
mMenuAnimationController.fadeOutIfEnabled();
}
// Avoid triggering the listener of the item.
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment