Skip to content
Commit 3731715b authored by Louis Chang's avatar Louis Chang
Browse files

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
parent 4b235cb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment