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

Commit b59b5a67 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

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

parents d6b907d5 37dbafce
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) {