When tasks are moved to top or bottom, the app tokens are being rearranged.

The window token rearrangement is defered if an animation is
underway. Force a focus recomputation when the window tokens are finally
rearranged so that we have a valid focused window.
This commit is contained in:
Suchi Amalapurapu
2009-11-05 18:51:16 -08:00
parent 1d5b3a631c
commit c9568e3989
2 changed files with 5 additions and 2 deletions

View File

@@ -9629,6 +9629,10 @@ public class WindowManagerService extends IWindowManager.Stub
moveInputMethodWindowsIfNeededLocked(false);
wallpaperMayChange = true;
mLayoutNeeded = true;
// Since the window list has been rebuilt, focus might
// have to be recomputed since the actual order of windows
// might have changed again.
focusMayChange = true;
}
int adjResult = 0;