summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Gruszczynski <gruszczy@google.com>2015-06-05 09:43:06 -0700
committerFilip Gruszczynski <gruszczy@google.com>2015-06-05 09:43:06 -0700
commitb0c673b50e75cb9d931156d4e09e9628ba3caec1 (patch)
tree7cc6b54fffea427ff34671a7c1148ceee5faea83
parent0f2f9f7a51a43ef8ca1d977f62cf649d08d6ec84 (diff)
parentf6a0430592a41c1d01ab0a7991a0348eabfb744e (diff)
downloadframeworks_base-b0c673b50e75cb9d931156d4e09e9628ba3caec1.zip
frameworks_base-b0c673b50e75cb9d931156d4e09e9628ba3caec1.tar.gz
frameworks_base-b0c673b50e75cb9d931156d4e09e9628ba3caec1.tar.bz2
resolved conflicts for merge of f6a04305 to mnc-dev
Change-Id: I92e666bfd6d8ad051bdee7dce5712b9cb8e6a01d
-rw-r--r--services/core/java/com/android/server/policy/PhoneWindowManager.java7
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());