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

Commit 200bb14d authored by Andrew Lee's avatar Andrew Lee
Browse files

Set FAB to invisible on hide if no animation.

ScaleIn animation will not trigger if FAB is already visible, so if
we don't scaleOut, set the visibility of the FAB to GONE.

Bug: 21903907
Change-Id: I25ef78ca4e042665d62c40b791d7217310515597
parent af7d8bbd
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1643,12 +1643,17 @@ public class DialpadFragment extends Fragment
            if (mAnimate) {
                dialpadView.animateShow();
            }
            mFloatingActionButtonController.setVisible(false);
            mFloatingActionButtonController.scaleIn(mAnimate ? mDialpadSlideInDuration : 0);
            activity.onDialpadShown();
            mDigits.requestFocus();
        }
        if (hidden && mAnimate) {
        if (hidden) {
            if (mAnimate) {
                mFloatingActionButtonController.scaleOut();
            } else {
                mFloatingActionButtonController.setVisible(false);
            }
        }
    }