diff options
| author | 2013-10-08 16:36:49 +0000 | |
|---|---|---|
| committer | 2013-10-08 16:36:49 +0000 | |
| commit | e60b7bf7f570a93cbab48e3763cb50d51ee4aa03 (patch) | |
| tree | e0fd50305a32c316cebf3e179c1d7ddf99859493 | |
| parent | c2242aac0cd6c214422a1507dfd4b4673642cd98 (diff) | |
| parent | 65567d4e6ca61bbf702afd76e8be938982187e9a (diff) | |
Merge "Don't crop top-most windows at rest." into klp-dev
| -rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 3468425e3a13..de841da31735 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -3003,9 +3003,12 @@ public class PhoneWindowManager implements WindowManagerPolicy { dcf.bottom = mSystemBottom; final boolean inheritTranslucentDecor = (attrs.privateFlags & WindowManager.LayoutParams.PRIVATE_FLAG_INHERIT_TRANSLUCENT_DECOR) != 0; - if (attrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW - && attrs.type <= WindowManager.LayoutParams.LAST_APPLICATION_WINDOW - && !inheritTranslucentDecor) { + final boolean isAppWindow = + attrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW && + attrs.type <= WindowManager.LayoutParams.LAST_APPLICATION_WINDOW; + final boolean topAtRest = + win == mTopFullscreenOpaqueWindowState && !win.isAnimatingLw(); + if (isAppWindow && !inheritTranslucentDecor && !topAtRest) { if ((sysUiFl & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0 && (fl & WindowManager.LayoutParams.FLAG_FULLSCREEN) == 0 && (fl & WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) == 0) { |