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

Commit 6349cd4f authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Remove outdated logic of checking display-has-content

The method is no longer called in perform surface placement.
It won't trigger another pass by setting the pending change.

Also since I225fff1ff4f0738bdaf06f6813b53dbf26caf0a7, which can
update the display-has-content in time. So this logic become
dead code.

Bug: 163976519
Flag: EXEMPT remove dead code
Test: CtsWindowManagerDeviceActivity
Change-Id: Ic16dd5a1949a962df0e6088a8086fd0780f549b3
parent f7c4dc87
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -480,18 +480,6 @@ class WindowStateAnimator {
                if (mLastHidden) {
                if (mLastHidden) {
                    showRobustly(t);
                    showRobustly(t);
                    mLastHidden = false;
                    mLastHidden = false;
                    final DisplayContent displayContent = w.getDisplayContent();
                    if (!displayContent.getLastHasContent()) {
                        // This draw means the difference between unique content and mirroring.
                        // Run another pass through performLayout to set mHasContent in the
                        // LogicalDisplay.
                        displayContent.pendingLayoutChanges |= FINISH_LAYOUT_REDO_ANIM;
                        if (DEBUG_LAYOUT_REPEATS) {
                            mService.mWindowPlacerLocked.debugLayoutRepeats(
                                    "showSurfaceRobustlyLocked " + w,
                                    displayContent.pendingLayoutChanges);
                        }
                    }
                }
                }
            }
            }
        }
        }