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

Commit 3bdc3694 authored by Josh Yang's avatar Josh Yang
Browse files

Allow ATM.takeTaskSnapshot() API to take snapshot of home task.

Set "snapshotHome" to true in the ATM.takeTaskSnapshot() API.
This is needed by wear OS where we want to take a snapshot for home.

Bug: 263900372
Test: manual test that task snapshot is correctly taken.
Change-Id: I075dc765c4655f327d1292a7461052e0cc4c7254
parent b06bad92
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -140,6 +140,7 @@ abstract class AbsAppSnapshotController<TYPE extends WindowContainer,
     *
     * This is only used for testing so the snapshot content can be verified.
     */
    // TODO(b/264551777): clean up the "snapshotHome" argument
    @VisibleForTesting
    TaskSnapshot captureSnapshot(TYPE source, boolean snapshotHome) {
        final TaskSnapshot snapshot;
+1 −1
Original line number Diff line number Diff line
@@ -3774,7 +3774,7 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
                    return null;
                }
                return mWindowManager.mTaskSnapshotController.captureSnapshot(
                        task, false /* snapshotHome */);
                        task, true /* snapshotHome */);
            }
        } finally {
            Binder.restoreCallingIdentity(ident);