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

Commit e44defd0 authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

Merge "Revert "DMWindowDecor: Call layout again when we are finished wi..."" into main

parents 00cce059 d19cd076
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -667,14 +667,6 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin
        mBgExecutor.execute(mLoadAppInfoRunnable);
    }

    /**
     * Does a relayout without any new changes.
     * This is used if other states have changed (e.g. {@link mIsRecentsTransitionRunning}.
     */
    private void relayout() {
        relayout(mTaskInfo, mHasGlobalFocus, mExclusionRegion);
    }

    private boolean showInputLayer() {
        if (!DesktopModeFlags.ENABLE_INPUT_LAYER_TRANSITION_FIX.isTrue()) {
            return isCaptionVisible();
@@ -1966,11 +1958,6 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin
     */
    void setIsRecentsTransitionRunning(boolean isRecentsTransitionRunning) {
        mIsRecentsTransitionRunning = isRecentsTransitionRunning;
        // TODO (b/394791828): Remove this once we can remove the input layer.
        if (DesktopModeFlags.ENABLE_INPUT_LAYER_TRANSITION_FIX.isTrue()
                && !isRecentsTransitionRunning) {
            relayout();
        }
    }

    /**