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

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

Merge "Log bubbles unfolding transitions" into main

parents 591c061f a1cf78cc
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -214,6 +214,8 @@ public class BubbleTransitions {
        // the bubble bar flag, but once these are combined we should be able to remove this.
        // the bubble bar flag, but once these are combined we should be able to remove this.
        if (com.android.wm.shell.Flags.enableBubbleBar()
        if (com.android.wm.shell.Flags.enableBubbleBar()
                && mBubbleData.getSelectedBubble() instanceof Bubble) {
                && mBubbleData.getSelectedBubble() instanceof Bubble) {
            ProtoLog.d(
                    WM_SHELL_BUBBLES, "notifyUnfoldTransitionStarting transition=%s", transition);
            Bubble bubble = (Bubble) mBubbleData.getSelectedBubble();
            Bubble bubble = (Bubble) mBubbleData.getSelectedBubble();
            mTaskViewTransitions.enqueueExternal(
            mTaskViewTransitions.enqueueExternal(
                    bubble.getTaskView().getController(), () -> transition);
                    bubble.getTaskView().getController(), () -> transition);
@@ -223,6 +225,8 @@ public class BubbleTransitions {
    /** Notifies when the unfold transition has finished. */
    /** Notifies when the unfold transition has finished. */
    public void notifyUnfoldTransitionFinished(@NonNull IBinder transition) {
    public void notifyUnfoldTransitionFinished(@NonNull IBinder transition) {
        if (com.android.wm.shell.Flags.enableBubbleBar()) {
        if (com.android.wm.shell.Flags.enableBubbleBar()) {
            ProtoLog.d(
                    WM_SHELL_BUBBLES, "notifyUnfoldTransitionFinished transition=%s", transition);
            mTaskViewTransitions.onExternalDone(transition);
            mTaskViewTransitions.onExternalDone(transition);
        }
        }
    }
    }