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

Commit 018a02f8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Restore the behavior of adding a RESUMED activity to stopping list"

parents 8a8efbca 6215bfda
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -4770,14 +4770,14 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
                    supportsEnterPipOnTaskSwitch = false;
                    supportsEnterPipOnTaskSwitch = false;
                    break;
                    break;
                case RESUMED:
                case RESUMED:
                    // Do nothing if currently in the process of resuming the activity. Otherwise,
                    // If the app is capable of entering PIP, we should try pausing it now
                    // starting to pause it since it is not visible.
                    // so it can PIP correctly.
                    if (!mSetToSleep) {
                    if (deferHidingClient) {
                        getRootTask().startPausingLocked(
                                mStackSupervisor.mUserLeaving /* userLeaving */,
                                false /* uiSleeping */, null /* resuming */, "makeInvisible");
                        break;
                        break;
                    }
                    }
                    getRootTask().startPausingLocked(mStackSupervisor.mUserLeaving,
                            false /* uiSleeping */, null /* resuming */, "makeInvisible");
                    // fall through
                case INITIALIZING:
                case INITIALIZING:
                case PAUSING:
                case PAUSING:
                case PAUSED:
                case PAUSED: