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

Commit 9893ea9a authored by wilsonshih's avatar wilsonshih
Browse files

Do not capture task snapshot created from organizer.

Only matter for leaf task.

Bug: 259497289
Test: create a split screen then back to home, verify won't capture
snapshot for non-leaf task(usually taskId #3 and #4)

Change-Id: Id80b70e9cb8be57e1e9f6b753d11f0e37e1b91ba
parent 4bb1c57a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ class SnapshotController {
            if (info.mWindowingMode == WINDOWING_MODE_PINNED) continue;
            if (info.mContainer.isActivityTypeHome()) continue;
            final Task task = info.mContainer.asTask();
            if (task != null && !task.isVisibleRequested()) {
            if (task != null && !task.mCreatedByOrganizer && !task.isVisibleRequested()) {
                mTaskSnapshotController.recordSnapshot(task, info);
            }
            // Won't need to capture activity snapshot in close transition.