Let the finishing transition commit the visibility

There may have visibility changes by WindowContainerTransaction
before calling Transition#finishTransition.

To make sure the visibility of transition participants can be
committed in Transition#finishTransition, if there is a request
to change activity visibility in a finishing transition, then
only set the requested visibility without commit.

Bug: 273440622
Test: atest TransitionTests#testTransientLaunch

Change-Id: I7517785795f43d5b8a2d1de54a95fbef1891ed41
7 files changed