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

Commit 4016edb8 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

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

am: ef21335d

* commit 'ef21335d':
  Notify task changed listeners when a pinned activity is removed
parents 2d9b9b81 ef21335d
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;
        }