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 | 31901cc0b6f0c678be4f629c8c3405700e63c346 (patch) | |
| tree | 3f3e0dc39aad486f1bf3ad1e11ea2e134a08a73a /libs/surfaceflinger/SurfaceFlinger.cpp | |
| parent | 5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693 (diff) | |
| download | frameworks_base-31901cc0b6f0c678be4f629c8c3405700e63c346.zip frameworks_base-31901cc0b6f0c678be4f629c8c3405700e63c346.tar.gz frameworks_base-31901cc0b6f0c678be4f629c8c3405700e63c346.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/SurfaceFlinger.cpp')
| -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()) { |
