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

Commit 072d2e46 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Cancel the stash animation if the stash controller is destroyed before then" into main

parents 8f8932b0 acea8623
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1183,6 +1183,12 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
     * Clean up on destroy from TaskbarControllers
     */
    public void onDestroy() {
        // If the controller is destroyed before the animation finishes, we cancel the animation
        // so that we don't finish the CUJ.
        if (mAnimator != null) {
            mAnimator.cancel();
            mAnimator = null;
        }
        UI_HELPER_EXECUTOR.execute(
                () -> mAccessibilityManager.unregisterSystemAction(SYSTEM_ACTION_ID_TASKBAR));
    }