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

Commit 064e1e67 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [2425395] portrait UI briefly shows in landscape

the "freeze" timeout was not initialized properly which caused it
to kick-in immediately instead of after 5s
parent 285dbde2
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -625,12 +625,13 @@ void SurfaceFlinger::handleTransactionLocked(


            mVisibleRegionsDirty = true;
            mVisibleRegionsDirty = true;
            mDirtyRegion.set(hw.bounds());
            mDirtyRegion.set(hw.bounds());
            mFreezeDisplayTime = 0;
        }
        }


        if (mCurrentState.freezeDisplay != mDrawingState.freezeDisplay) {
        if (mCurrentState.freezeDisplay != mDrawingState.freezeDisplay) {
            // freezing or unfreezing the display -> trigger animation if needed
            // freezing or unfreezing the display -> trigger animation if needed
            mFreezeDisplay = mCurrentState.freezeDisplay;
            mFreezeDisplay = mCurrentState.freezeDisplay;
            if (mFreezeDisplay)
                 mFreezeDisplayTime = 0;
        }
        }


        if (currentLayers.size() > mDrawingState.layersSortedByZ.size()) {
        if (currentLayers.size() > mDrawingState.layersSortedByZ.size()) {