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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user