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

Commit 2bd4866c authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Merge \"Added checks while unfreezing bounds\" into nyc-mr1-dev

am: b59b5a67

Change-Id: I3754163cd570575d6755dd48ed2db594f0497c9e
parents 934adb2a b59b5a67
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -626,6 +626,9 @@ class AppWindowToken extends WindowToken {
    }

    void clearRelaunching() {
        if (mPendingRelaunchCount == 0) {
            return;
        }
        if (canFreezeBounds()) {
            unfreezeBounds();
        }
@@ -711,8 +714,12 @@ class AppWindowToken extends WindowToken {
     * Unfreezes the previously frozen bounds. See {@link #freezeBounds}.
     */
    private void unfreezeBounds() {
        if (!mFrozenBounds.isEmpty()) {
            mFrozenBounds.remove();
        }
        if (!mFrozenMergedConfig.isEmpty()) {
            mFrozenMergedConfig.remove();
        }
        for (int i = windows.size() - 1; i >= 0; i--) {
            final WindowState win = windows.get(i);
            if (!win.mHasSurface) {