am 763ccae7: Merge change I8e7f5f07 into eclair

Merge commit '763ccae7d734cc7e55772936dc3f101a2bf453d4' into eclair-plus-aosp

* commit '763ccae7d734cc7e55772936dc3f101a2bf453d4':
  DO NOT MERGE: Fix loss of focus after wakeup into incall screen
This commit is contained in:
Christopher Tate
2009-10-28 12:19:01 -07:00
committed by Android Git Automerger

View File

@@ -9303,6 +9303,15 @@ public class WindowManagerService extends IWindowManager.Stub
& WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER) != 0) {
wallpaperMayChange = true;
}
if (changed && !forceHiding
&& (mCurrentFocus == null)
&& (mFocusedApp != null)) {
// It's possible that the last focus recalculation left no
// current focused window even though the app has come to the
// foreground already. In this case, we make sure to recalculate
// focus when we show a window.
focusMayChange = true;
}
}
mPolicy.animatingWindowLw(w, attrs);