diff options
author | Mathias Agopian <mathias@google.com> | 2010-03-01 17:51:17 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-03-01 18:36:14 -0800 |
commit | 064e1e672e62094b32f8cf7a77a3b04c3309dc79 (patch) | |
tree | 1bd60f1efaec92479bedb0cd7edf95dcc8098f12 /libs/surfaceflinger | |
parent | 285dbde2e0cd0057be070ded3be8f5f453147edc (diff) | |
download | frameworks_native-064e1e672e62094b32f8cf7a77a3b04c3309dc79.zip frameworks_native-064e1e672e62094b32f8cf7a77a3b04c3309dc79.tar.gz frameworks_native-064e1e672e62094b32f8cf7a77a3b04c3309dc79.tar.bz2 |
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
Diffstat (limited to 'libs/surfaceflinger')
-rw-r--r-- | libs/surfaceflinger/SurfaceFlinger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/surfaceflinger/SurfaceFlinger.cpp b/libs/surfaceflinger/SurfaceFlinger.cpp index 66ac4d2..2598440 100644 --- a/libs/surfaceflinger/SurfaceFlinger.cpp +++ b/libs/surfaceflinger/SurfaceFlinger.cpp @@ -625,12 +625,13 @@ void SurfaceFlinger::handleTransactionLocked( mVisibleRegionsDirty = true; mDirtyRegion.set(hw.bounds()); - mFreezeDisplayTime = 0; } if (mCurrentState.freezeDisplay != mDrawingState.freezeDisplay) { // freezing or unfreezing the display -> trigger animation if needed mFreezeDisplay = mCurrentState.freezeDisplay; + if (mFreezeDisplay) + mFreezeDisplayTime = 0; } if (currentLayers.size() > mDrawingState.layersSortedByZ.size()) { |