diff options
| author | Filip Gruszczynski <gruszczy@google.com> | 2015-06-05 16:59:44 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-05 16:59:48 +0000 |
| commit | eb974d5ac4b8733e4788066ec9ac6cf2bfb75c9b (patch) | |
| tree | acd942ff663ba1510cc26367e3cfca60a2b99247 | |
| parent | e1352de673423264c00c71c0ec1597bbdad6fd03 (diff) | |
| parent | b0c673b50e75cb9d931156d4e09e9628ba3caec1 (diff) | |
| download | frameworks_base-eb974d5ac4b8733e4788066ec9ac6cf2bfb75c9b.zip frameworks_base-eb974d5ac4b8733e4788066ec9ac6cf2bfb75c9b.tar.gz frameworks_base-eb974d5ac4b8733e4788066ec9ac6cf2bfb75c9b.tar.bz2 | |
Merge "resolved conflicts for merge of f6a04305 to mnc-dev" into mnc-dev
| -rw-r--r-- | services/core/java/com/android/server/policy/PhoneWindowManager.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java index 46793b9..8f8b1a4 100644 --- a/services/core/java/com/android/server/policy/PhoneWindowManager.java +++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java @@ -4093,7 +4093,12 @@ public class PhoneWindowManager implements WindowManagerPolicy { // If the device has a chin (e.g. some watches), a dead area at the bottom of the screen we // need to provide information to the clients that want to pretend that you can draw there. - if (isDefaultDisplay && (fl & WindowManager.LayoutParams.FLAG_FULLSCREEN) != 0) { + // We only want to apply outsets to certain types of windows. For example, we never want to + // apply the outsets to floating dialogs, because they wouldn't make sense there. + final boolean useOutsets = attrs.type == TYPE_WALLPAPER + || (fl & (WindowManager.LayoutParams.FLAG_FULLSCREEN + | WindowManager.LayoutParams.FLAG_LAYOUT_IN_OVERSCAN)) != 0; + if (isDefaultDisplay && useOutsets) { osf = mTmpOutsetFrame; osf.set(cf.left, cf.top, cf.right, cf.bottom); int outset = ScreenShapeHelper.getWindowOutsetBottomPx(mContext.getResources()); |
