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

Commit b9663702 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Fix end-call FAB position when dial pad is shown on device rotate.

Move the "onDialpadVisibilityChange()" listener call so that it takes
place regardless if the dialpad is animated on show-hide.  That
listener triggers "updateFabPosition()" in callCardFragment, which
repositions the fab.

Bug: 27170964
Change-Id: I56588695c633205f4ebaac6d9685f543b9e09293
parent 9172c905
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -780,9 +780,11 @@ public class InCallActivity extends TransactionSafeActivity implements FragmentD
                showFragment(TAG_DIALPAD_FRAGMENT, true, true);
                mDialpadFragment.animateShowDialpad();
            }
            mCallCardFragment.onDialpadVisibilityChange(show);
            mDialpadFragment.getView().startAnimation(show ? mSlideIn : mSlideOut);
        }
        // Note:  onDialpadVisibilityChange is called here to ensure that the dialpad FAB
        // repositions itself.
        mCallCardFragment.onDialpadVisibilityChange(show);

        final ProximitySensor sensor = InCallPresenter.getInstance().getProximitySensor();
        if (sensor != null) {