diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-10-28 15:09:29 -0400 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-10-28 15:09:29 -0400 |
| commit | 763ccae7d734cc7e55772936dc3f101a2bf453d4 (patch) | |
| tree | 59398ce402c1998b13a5a89db72a060b6884a54f /services | |
| parent | 25aa87b2fdd065637cc87cb4b3e58b828aa29120 (diff) | |
| parent | 405d0898630a1c35e8e5ece072d8703fd68aca3b (diff) | |
| download | frameworks_base-763ccae7d734cc7e55772936dc3f101a2bf453d4.zip frameworks_base-763ccae7d734cc7e55772936dc3f101a2bf453d4.tar.gz frameworks_base-763ccae7d734cc7e55772936dc3f101a2bf453d4.tar.bz2 | |
Merge change I8e7f5f07 into eclair
* changes:
DO NOT MERGE: Fix loss of focus after wakeup into incall screen
Diffstat (limited to 'services')
| -rw-r--r-- | services/java/com/android/server/WindowManagerService.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index cd6a371..6418901 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -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); |
