summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2014-03-25 17:26:28 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-25 17:26:28 +0000
commite6e9b14c99528a172ce034bb42ffb823ddd90b26 (patch)
tree24981f5e646701ce8daa07513c34e6eb28912cca /services/java
parentdf7da51311331d4d7bfe67699217246d187f6c3b (diff)
parent9bbd2f977ba4d6c4642f96673f937a677ff0beb2 (diff)
downloadframeworks_base-e6e9b14c99528a172ce034bb42ffb823ddd90b26.zip
frameworks_base-e6e9b14c99528a172ce034bb42ffb823ddd90b26.tar.gz
frameworks_base-e6e9b14c99528a172ce034bb42ffb823ddd90b26.tar.bz2
am 9bbd2f97: am 2cacc619: Merge "Don\'t wait for finishing animation when second display is disconnected"
* commit '9bbd2f977ba4d6c4642f96673f937a677ff0beb2': Don't wait for finishing animation when second display is disconnected
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/wm/WindowManagerService.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java
index 8777897..096921d 100644
--- a/services/java/com/android/server/wm/WindowManagerService.java
+++ b/services/java/com/android/server/wm/WindowManagerService.java
@@ -2380,6 +2380,11 @@ public class WindowManagerService extends IWindowManager.Stub
}
public void removeWindowLocked(Session session, WindowState win) {
+ removeWindowLocked(session, win, false);
+ }
+
+ private void removeWindowLocked(Session session, WindowState win,
+ boolean forceRemove) {
if (win.mAttrs.type == TYPE_APPLICATION_STARTING) {
if (DEBUG_STARTING_WINDOW) Slog.d(TAG, "Starting window removed " + win);
removeStartingWindowTimeout(win.mAppToken);
@@ -2430,7 +2435,7 @@ public class WindowManagerService extends IWindowManager.Stub
mDisplayMagnifier.onWindowTransitionLocked(win, transit);
}
}
- if (win.mExiting || win.mWinAnimator.isAnimating()) {
+ if (!forceRemove && (win.mExiting || win.mWinAnimator.isAnimating())) {
// The exit animation is running... wait for it!
//Slog.i(TAG, "*** Running exit animation...");
win.mExiting = true;
@@ -10858,7 +10863,7 @@ public class WindowManagerService extends IWindowManager.Stub
WindowList windows = displayContent.getWindowList();
while (!windows.isEmpty()) {
final WindowState win = windows.get(windows.size() - 1);
- removeWindowLocked(win.mSession, win);
+ removeWindowLocked(win.mSession, win, true);
}
}
mAnimator.removeDisplayLocked(displayId);