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

Commit 28e76d58 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Do not record snapshot when snapshots are disabled" into udc-dev

parents a82a21c0 0a68ae7e
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -167,6 +167,9 @@ abstract class AbsAppSnapshotController<TYPE extends WindowContainer,
    }
    }


    final TaskSnapshot recordSnapshotInner(TYPE source, boolean allowSnapshotHome) {
    final TaskSnapshot recordSnapshotInner(TYPE source, boolean allowSnapshotHome) {
        if (shouldDisableSnapshots()) {
            return null;
        }
        final boolean snapshotHome = allowSnapshotHome && source.isActivityTypeHome();
        final boolean snapshotHome = allowSnapshotHome && source.isActivityTypeHome();
        final TaskSnapshot snapshot = captureSnapshot(source, snapshotHome);
        final TaskSnapshot snapshot = captureSnapshot(source, snapshotHome);
        if (snapshot == null) {
        if (snapshot == null) {