Merge "Fix window disappearing when docking a second app"

This commit is contained in:
Chong Zhang
2015-12-04 00:06:38 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -252,7 +252,7 @@ class Task implements DimLayer.DimLayerUser {
}
int boundsChange = BOUNDS_CHANGE_NONE;
if (mBounds.left != bounds.left || mBounds.right != bounds.right) {
if (mBounds.left != bounds.left || mBounds.top != bounds.top) {
boundsChange |= BOUNDS_CHANGE_POSITION;
}
if (mBounds.width() != bounds.width() || mBounds.height() != bounds.height()) {

View File

@@ -10195,7 +10195,7 @@ public class WindowManagerService extends IWindowManager.Stub
public void setReplacingWindow(IBinder token, boolean animate) {
synchronized (mWindowMap) {
AppWindowToken appWindowToken = findAppWindowToken(token);
if (appWindowToken == null) {
if (appWindowToken == null || !appWindowToken.isVisible()) {
Slog.w(TAG, "Attempted to set replacing window on non-existing app token " + token);
return;
}