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

Commit ec5681b5 authored by Hongwei Wang's avatar Hongwei Wang Committed by Automerger Merge Worker
Browse files

Merge "Do not schedule transition in onTaskVanished" into rvc-dev am:...

Merge "Do not schedule transition in onTaskVanished" into rvc-dev am: 1b27b75c am: 1e479408 am: 775a9f36 am: 10522ae2

Change-Id: I75dabbccaa35e34b95d674cf32ff8bbadda08e95
parents f1492b91 10522ae2
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -285,6 +285,8 @@ public class PipTaskOrganizer extends TaskOrganizer {
     * Meanwhile this callback is invoked whenever the task is removed. For instance:
     *   - as a result of removeStacksInWindowingModes from WM
     *   - activity itself is died
     * Nevertheless, we simply update the internal state here as all the heavy lifting should
     * have been done in WM.
     */
    @Override
    public void onTaskVanished(ActivityManager.RunningTaskInfo info) {
@@ -297,10 +299,6 @@ public class PipTaskOrganizer extends TaskOrganizer {
            Log.wtf(TAG, "Unrecognized token: " + token);
            return;
        }
        final Rect boundsToRestore = mBoundsToRestore.remove(token.asBinder());
        scheduleAnimateResizePip(mLastReportedBounds, boundsToRestore,
                TRANSITION_DIRECTION_TO_FULLSCREEN, mEnterExitAnimationDuration,
                null /* updateBoundsCallback */);
        mInPip = false;
    }