Merge "Fix window disappearing when docking a second app"
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user