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

Commit fc2507c7 authored by Louis Chang's avatar Louis Chang
Browse files

Revert "Pausing the resumed activity when making it invisible"

This reverts commit 9cbadee7.

Reason for revert: b/171220278

Change-Id: Ib73285473168f1541a41564a6ef02f9ca18ac4c3
parent 9cbadee7
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -4761,15 +4761,14 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
                    supportsEnterPipOnTaskSwitch = false;
                    break;
                case RESUMED:
                    // Do nothing if currently in the process of resuming the activity. Otherwise,
                    // starting to pause it since it is not visible.
                    if (task.mInResumeTopActivity
                            && task.topRunningActivity(true /* focusableOnly */) == this) {
                    // If the app is capable of entering PIP, we should try pausing it now
                    // so it can PIP correctly.
                    if (deferHidingClient) {
                        getRootTask().startPausingLocked(
                                mStackSupervisor.mUserLeaving /* userLeaving */,
                                false /* uiSleeping */, null /* resuming */, "makeInvisible");
                        break;
                    }
                    getRootTask().startPausingLocked(mStackSupervisor.mUserLeaving,
                            false /* uiSleeping */, null /* resuming */, "makeInvisible");
                    // fall through
                case INITIALIZING:
                case PAUSING:
                case PAUSED: