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

Commit 976501c0 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Remove unused method in ClipboardOverlayController

The animateOut() method isn't used; it's superceded by the finish()
methods calling view.getExitAnimation directly. It's not used since the
rollout and removal of the shared transitions flag ag/33238405.

Bug: 409606539
Test: manual (unused method)
Flag: EXEMPT trivial cleanup
Change-Id: I9c6999a1c5563e0e745d5f0bc842739f5e351d9c
parent dc5fa92e
Loading
Loading
Loading
Loading
+0 −25
Original line number Diff line number Diff line
@@ -440,31 +440,6 @@ public class ClipboardOverlayController implements ClipboardListener.ClipboardOv
        finish(event, null);
    }

    private void animateOut() {
        if (mExitAnimator != null && mExitAnimator.isRunning()) {
            return;
        }
        mExitAnimator = mView.getExitAnimation();
        mExitAnimator.addListener(new AnimatorListenerAdapter() {
            private boolean mCancelled;

            @Override
            public void onAnimationCancel(Animator animation) {
                super.onAnimationCancel(animation);
                mCancelled = true;
            }

            @Override
            public void onAnimationEnd(Animator animation) {
                super.onAnimationEnd(animation);
                if (!mCancelled) {
                    hideImmediate();
                }
            }
        });
        mExitAnimator.start();
    }

    private void finish(ClipboardOverlayEvent event, @Nullable Intent intent) {
        if (mExitAnimator != null && mExitAnimator.isRunning()) {
            return;