Reduce unnecessary screenshot when display is not on

The transition is not visible so a screenshot is not needed.

Bug: 281067141
Test: Trigger config change when screen is off
Change-Id: Ia6dcee6f147675f5170830d63c9ffa3263e3cb13
This commit is contained in:
Riddle Hsu
2023-05-06 01:00:52 +08:00
parent 25aa2d3c87
commit 1f92fbea01

View File

@@ -691,6 +691,7 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
if (!wc.mDisplayContent.getDisplayPolicy().isScreenOnFully()
|| wc.mDisplayContent.getDisplayInfo().state == Display.STATE_OFF) {
mFlags |= WindowManager.TRANSIT_FLAG_INVISIBLE;
return;
}
if (mContainerFreezer == null) {