Fix transferring of starting windows
Since we may transfer starting data we can not store
AppWindowToken in that class.
Additionally, remove starting window directly if it was
transferred. The normal removing path doesn't really work as
the fields aren't set.
Also fixes a monkey crash in the same code region.
Test: Open a notification that creates multiple activities with
using TaskStackBuilder, verify no windows leaking.
Test: (For monkey crash) Boot device, pray to the monkey god
Change-Id: I64fb176b579535adea1916d1623ad03ab06ca67e
Fixes: 34364463
Fixes: 34361417
Fixes: 34349533
4 files changed