Loading
Add missing check of avoidMoveToFront when starting activity
Otherwise if the task is still moved to top unexpectedly, the
surface visibility may not be consistent with its hierarchy order.
Bug: 337995601
Test: A singleTask activity invokes
startActivity or startActivityIfNeeded to start itself
during swiping up to home. The end result should show
home instead of black screen.
Change-Id: Ieda1a3612ccdf6c160690579e9995a2e873466d2