diff options
author | Craig Mautner <cmautner@google.com> | 2012-10-11 14:48:57 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-11 14:48:57 -0700 |
commit | 46fb9e9f226c234c2b95428b8827df3cb0333cde (patch) | |
tree | 592ec8e299c1a44aae271b0caddbc1779a99285f | |
parent | 853a1ceae056d773a41716a8a586118be1fa9dac (diff) | |
parent | a987d43bc916b6446fe41037d9fcf07e778b3452 (diff) | |
download | frameworks_base-46fb9e9f226c234c2b95428b8827df3cb0333cde.zip frameworks_base-46fb9e9f226c234c2b95428b8827df3cb0333cde.tar.gz frameworks_base-46fb9e9f226c234c2b95428b8827df3cb0333cde.tar.bz2 |
Merge "Check for apps closing and restore mExiting test." into jb-mr1-dev
-rwxr-xr-x | services/java/com/android/server/wm/WindowManagerService.java | 1 | ||||
-rw-r--r-- | services/java/com/android/server/wm/WindowState.java | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 54f6deb..77d815b 100755 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -1213,6 +1213,7 @@ public class WindowManagerService extends IWindowManager.Stub final WindowState curTarget = mInputMethodTarget; if (curTarget != null && w != null && curTarget.isDisplayedLw() + && curTarget.isClosing() && (curTarget.mWinAnimator.mAnimLayer > w.mWinAnimator.mAnimLayer)) { if (DEBUG_INPUT_METHOD) Slog.v(TAG, "Current target higher, not changing"); return windows.indexOf(curTarget) + 1; diff --git a/services/java/com/android/server/wm/WindowState.java b/services/java/com/android/server/wm/WindowState.java index 23892f6..feb29b1 100644 --- a/services/java/com/android/server/wm/WindowState.java +++ b/services/java/com/android/server/wm/WindowState.java @@ -1024,6 +1024,10 @@ final class WindowState implements WindowManagerPolicy.WindowState { return mClient.asBinder().isBinderAlive(); } + boolean isClosing() { + return mExiting || (mService.mClosingApps.contains(mAppToken)); + } + @Override public boolean isDefaultDisplay() { return mDisplayContent.isDefaultDisplay; @@ -1234,7 +1238,7 @@ final class WindowState implements WindowManagerPolicy.WindowState { mWasPaused = mToken.paused; mStringNameCache = "Window{" + Integer.toHexString(System.identityHashCode(this)) + " u" + UserHandle.getUserId(mSession.mUid) - + " " + mLastTitle + (mWasPaused ? " PAUSED}" : "}"); + + " " + mLastTitle + (mExiting ? " EXITING}" : "}"); } return mStringNameCache; } |