Fix issue #2015611: layering problem when moving an activity to the foreground.

"surface of singleTop acitivy is not added at the top, causing the activity is resumed
behind the top activity."
This commit is contained in:
Dianne Hackborn
2009-07-27 21:51:05 -07:00
parent ecbbecf6c5
commit 20583ff9d4

View File

@@ -8179,7 +8179,9 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
// This has changed the visibility of windows, so perform
// a new layout to get them all up-to-date.
mLayoutNeeded = true;
moveInputMethodWindowsIfNeededLocked(true);
if (!moveInputMethodWindowsIfNeededLocked(true)) {
assignLayersLocked();
}
performLayoutLockedInner();
updateFocusedWindowLocked(UPDATE_FOCUS_PLACING_SURFACES);