Correct bg service start policy re bg-restricted state

Apps under strict bg restrictions shouldn't have that policy
applied when they're showing foreground UI.

Bug: 77345409
Test: ApiDemos
Test: maps navigation
Change-Id: I16b72c26d3e29b547442c1501a7e1761b182a25f
1 file changed