Skip transition if the display has no visible content
It is unnecessary to have a transition because there is nothing
to animate.
This aligns the same behavior as
PhysicalDisplaySwitchTransitionLauncher
#requestDisplaySwitchTransitionIfNeeded
and DisplayContent#requestChangeTransitionIfNeeded.
Bug: 259220649
Test: atest DisplayContentDeferredUpdateTests
Create an empty virtual display and resize it.
There should not have a transition (it may even hit timeout).
Change-Id: I0ef1cea067d58bd54611943dc126d7e46a083d2e
2 files changed