Update visibility and config at the same time

Update visibility, orientation and config together to ensure that
only activities that are actually visible can affect the orientation.

Bug: 76011287
Test: ActivityManagerAppConfigurationTests
Change-Id: Icdafedf540391d186f5dbe250b2b69d36742a26c
2 files changed