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

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

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

Revert submission 33133290

Reason for revert: Like culprit of b/412307812

Reverted changes: /q/submissionid:33133290

Change-Id: I09db2bd1445ee9e503afd872e4fcdbacf9c56af4
parent 4a3c3260
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -665,14 +665,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();
@@ -1964,11 +1956,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();
        }
    }

    /**