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

Commit 148e35c5 authored by Ben Lin's avatar Ben Lin
Browse files

DesktopModeWindowDecor: update App Handle holder after recents anim.

After Recents animation finish it is possible we need to restore app
handle functionality, but we should avoid doing a relayout just for the
sake of this. Instead do a light weight relayout - simply update the app
handle view holder.

Bug: 410838192
Test: atest, Manual (Overview in/out, and quick switch, app handle
works)
Flag:com.android.window.flags.enable_input_layer_transition_fix

Change-Id: I8923ddfe0f7d97c376eed207bf81dd946d77eb09
parent 4c31a357
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1892,6 +1892,11 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin
     */
    void setIsRecentsTransitionRunning(boolean isRecentsTransitionRunning) {
        mIsRecentsTransitionRunning = isRecentsTransitionRunning;
        // TODO (b/415631133): Update this to call on #relayout once b/415631133 is fixed
        if (isAppHandle(mWindowDecorViewHolder)
                && DesktopModeFlags.ENABLE_INPUT_LAYER_TRANSITION_FIX.isTrue()) {
            updateAppHandleViewHolder();
        }
    }

    /**