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

Commit 89182d5b authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Notify task changed listeners when a pinned activity is removed

Bug: 27558494
Change-Id: I68573e5654f476e0b3027ad80d0e86496867f128
parent d969cc68
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;
        }