Simplify the processing of stopping activities

Now if all resumed activities are visible, the stopping
activities can continue to be stopped that also sets to
invisible, so it no longer needs to update visibility
from another method.

Bug: 130340090
Test: atest ActivityVisibilityTests
Change-Id: I25a8518fa2eeaa4dd71f2062ff786ca4c13533a3
2 files changed