@Override
                    public void onAnimationEnd(Animator animation) {
                        if (!isEnterAnimation) {
                            BrowserActionsFallbackMenuDialog.super.dismiss();
                        }
                    }
The dialog class showing the context menu and ensures proper animation is played upon calling
{@link #show()} and {@link #dismiss()}.
customtabs/src/android/support/customtabs/browseractions/BrowserActionsFallbackMenuDialog.java