am a47a1e77: Merge change Ic03d28b9 into eclair

Merge commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0' into eclair-mr2

* commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0':
  Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
This commit is contained in:
Suchi Amalapurapu
2009-10-29 13:45:05 -07:00
committed by Android Git Automerger

View File

@@ -9644,7 +9644,8 @@ public class WindowManagerService extends IWindowManager.Stub
WindowState w = (WindowState)mWindows.get(i); WindowState w = (WindowState)mWindows.get(i);
if (w.mSurface != null) { if (w.mSurface != null) {
final WindowManager.LayoutParams attrs = w.mAttrs; final WindowManager.LayoutParams attrs = w.mAttrs;
if (mPolicy.doesForceHide(w, attrs)) { if (mPolicy.doesForceHide(w, attrs) && w.isVisibleLw()) {
if (DEBUG_FOCUS) Log.i(TAG, "win=" + w + " force hides other windows");
forceHiding = true; forceHiding = true;
} else if (mPolicy.canBeForceHidden(w, attrs)) { } else if (mPolicy.canBeForceHidden(w, attrs)) {
if (!w.mAnimating) { if (!w.mAnimating) {