Merge "Do not record snapshot when snapshots are disabled" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
28e76d58a5
@@ -167,6 +167,9 @@ abstract class AbsAppSnapshotController<TYPE extends WindowContainer,
|
||||
}
|
||||
|
||||
final TaskSnapshot recordSnapshotInner(TYPE source, boolean allowSnapshotHome) {
|
||||
if (shouldDisableSnapshots()) {
|
||||
return null;
|
||||
}
|
||||
final boolean snapshotHome = allowSnapshotHome && source.isActivityTypeHome();
|
||||
final TaskSnapshot snapshot = captureSnapshot(source, snapshotHome);
|
||||
if (snapshot == null) {
|
||||
|
||||
Reference in New Issue
Block a user