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

Commit d6b78a33 authored by Winson Chung's avatar Winson Chung
Browse files

Cancelling window transition when starting focus animation.

Change-Id: I34926215098c3226e99cc224c36d315fd1736b0a
parent ead5c0fc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1526,6 +1526,10 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
    }

    public final void onBusEvent(IterateRecentsEvent event) {
        if (!mEnterAnimationComplete) {
            // Cancel the previous task's window transition before animating the focused state
            EventBus.getDefault().send(new CancelEnterRecentsWindowAnimationEvent(null));
        }
        mLayoutAlgorithm.animateFocusState(mLayoutAlgorithm.getDefaultFocusState());
    }