Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f92fbea authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 25aa2d3c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {