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

Commit 46125323 authored by Abodunrinwa Toki's avatar Abodunrinwa Toki Committed by Android (Google) Code Review
Browse files

Merge "FloatingToolbar: Fix logic error in determining open/close overflow...

Merge "FloatingToolbar: Fix logic error in determining open/close overflow animation duration scale."
parents 6a38e65b d1cd7fde
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) /