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

Commit 64cdbf5c authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Do not add jank monitor for stash state change when the drag layer is...

Merge "Do not add jank monitor for stash state change when the drag layer is not attached to the window" into main
parents ab6ce8c7 91546d40
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -803,6 +803,11 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
    private void addJankMonitorListener(
            AnimatorSet animator, boolean expanding, @StashAnimation int animationType) {
        View v = mControllers.taskbarActivityContext.getDragLayer();
        if (!v.isAttachedToWindow()) {
            // If the task bar drag layer is not attached to window, we don't need to monitor jank
            // (actually we can't pass in an unattached view either).
            return;
        }
        int action = expanding ? InteractionJankMonitor.CUJ_TASKBAR_EXPAND :
                InteractionJankMonitor.CUJ_TASKBAR_COLLAPSE;
        animator.addListener(new AnimatorListenerAdapter() {