Do not capture activity snapshot if starting window is associated to task.

There doesn't need to capture snapshot from an activity if the starting
window is associated to task, everything should be hide behide the
window.

Bug: 290319270
Test: atest TransitionTests SyncEngineTests
Change-Id: I78eda58c3ec8405498b3c32ecc66b3d529cdb38c
1 file changed