Merge "Reduce unnecessary screenshot when display is not on" into udc-dev

This commit is contained in:
Riddle Hsu
2023-06-08 14:04:09 +00:00
committed by Android (Google) Code Review

View File

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