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

Commit 542d371c authored by Riley Jones's avatar Riley Jones
Browse files

Closes old FAB tooltip if a new one appears

If the docking tooltip needs to display,
and there's already a docking tooltip,
the original tooltip is removed.

Test: test manually by triggering the tooltip a second time while one is already displayed.
Flag: EXEMPT minor internal bugfix
Bug: 349525477
Change-Id: Ibeeb8bb8eca782227d1f5285a7975b46feb3cb8b
parent fbcec625
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -469,6 +469,7 @@ class MenuViewLayer extends FrameLayout implements

    private void onSpringAnimationsEndAction() {
        if (mShouldShowDockTooltip) {
            mEduTooltipView.ifPresent(this::removeTooltip);
            mEduTooltipView = Optional.of(new MenuEduTooltipView(mContext, mMenuViewAppearance));
            mEduTooltipView.ifPresent(view -> addTooltipView(view,
                    getContext().getText(R.string.accessibility_floating_button_docking_tooltip),