Restrict activity launch when caller is running in the background

Test: atest BackgroundActivityLaunchTest#testBackgroundActivityBlockedInStartNextMatchingActivity
Bug: 230492947
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e1edaa27ea2f6911977556c5bba876a2319d5e2d)
Merged-In: Ic88dd1e79b867b44cdcd6fc86650f5de6ebcc23d
Change-Id: Ic88dd1e79b867b44cdcd6fc86650f5de6ebcc23d
1 file changed