Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -107,6 +107,7 @@ class MenuListViewTouchHandler implements RecyclerView.OnItemTouchListener {
                        mVelocityTracker.computeCurrentVelocity(VELOCITY_UNIT_SECONDS);
                        mVelocityTracker.computeCurrentVelocity(VELOCITY_UNIT_SECONDS);
                        mMenuAnimationController.flingMenuThenSpringToEdge(endX,
                        mMenuAnimationController.flingMenuThenSpringToEdge(endX,
                                mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity());
                                mVelocityTracker.getXVelocity(), mVelocityTracker.getYVelocity());
                        mMenuAnimationController.fadeOutIfEnabled();
                    }
                    }
                    // Avoid triggering the listener of the item.
                    // Avoid triggering the listener of the item.
                    return true;
                    return true;