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

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

Merge "Notify task changed listeners when a pinned activity is removed" into nyc-dev

parents fc1713df 89182d5b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -759,6 +759,14 @@ final class TaskRecord {
        if (r.isPersistable()) {
            mService.notifyTaskPersisterLocked(this, false);
        }

        if (stack != null && stack.mStackId == PINNED_STACK_ID) {
            // We normally notify listeners of task stack changes on pause, however pinned stack
            // activities are normally in the paused state so no notification will be sent there
            // before the activity is removed. We send it here so instead.
            mService.notifyTaskStackChangedLocked();
        }

        if (mActivities.isEmpty()) {
            return !mReuseTask;
        }