Fix ActivityOptions.makeTaskLaunchBehind() doesn't work
- Activity tasks shouldn’t be moved to top if we were launching
the activity in behind.
- Activities were temporarily set as visible if it was actively
launched behind. Ensure the activities visibilities to avoid
keeping activities in RESUMED state after finish animating.
- Fix black screen flashes while starting task-behind.
The top app was set to hidden while starting an activity behind,
even when it was on top and actually visible. So, black screen
shown after reparenting the app token to leash for transition
animation because the leash was also hidden since it was created
from a hidden app.
Bug: 123382216
Test: atest StartActivityTests
Change-Id: I3cba33d7a0ce2d08d43a08e97f919bdd7bb21d7c
4 files changed