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

Commit 87794464 authored by Winson Chung's avatar Winson Chung
Browse files

Skip resizing the stack when there is no current bounds.

- When initially calling loadConfigurationsAndApply(), the state is
  set to STATE_NO_PIP when there is no pinned stack.  As of change
  ag/1725150, resizeStack no longer fails silently when there is no
  such stack to resize.  This CL skips the call to resizeStack() when
  the PiP mode is set to STATE_NO_PIP.

Bug: 34692144
Test: Try and launch Fugu
Change-Id: Ic539f4431c2f94e7c10520c383fa49157d1d0631
parent 85895792
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -377,6 +377,7 @@ public class PipManager {
                mCurrentPipBounds = mPipBounds;
                break;
        }
        if (mCurrentPipBounds != null) {
            try {
                int animationDurationMs = -1;
                if (wasRecentsShown
@@ -389,6 +390,7 @@ public class PipManager {
                Log.e(TAG, "resizeStack failed", e);
            }
        }
    }

    /**
     * Returns the default PIP bound.