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

Commit d1cd7fde authored by Abodunrinwa Toki's avatar Abodunrinwa Toki
Browse files

FloatingToolbar: Fix logic error in determining open/close overflow animation duration scale.

Change-Id: I31b32ee4234979471e5b6f917abd14af4fb2e3ee
parent 7200364e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1264,7 +1264,7 @@ public final class FloatingToolbar {
        }

        private void maybeComputeTransitionDurationScale() {
            if (mMainPanelSize == null || mOverflowPanel == null) {
            if (mMainPanelSize != null && mOverflowPanelSize != null) {
                int w = mMainPanelSize.getWidth() - mOverflowPanelSize.getWidth();
                int h = mOverflowPanelSize.getHeight() - mMainPanelSize.getHeight();
                mTransitionDurationScale = (int) (Math.sqrt(w * w + h * h) /