diff options
author | Filip Gruszczynski <gruszczy@google.com> | 2015-06-08 15:00:25 -0700 |
---|---|---|
committer | Filip Gruszczynski <gruszczy@google.com> | 2015-06-08 15:00:25 -0700 |
commit | 5e4c382d15968c757fb9c5783cbd420156ea8ad2 (patch) | |
tree | 0cd19986c7b6165d6b5a4a6dad9005fa572ed5bd /services | |
parent | e37cf3b8d614019c5570f945110bfbc5a8b09713 (diff) | |
parent | 17ba2e6c49b62c8763895aa6b81ffc06d7f3bc34 (diff) | |
download | frameworks_base-5e4c382d15968c757fb9c5783cbd420156ea8ad2.zip frameworks_base-5e4c382d15968c757fb9c5783cbd420156ea8ad2.tar.gz frameworks_base-5e4c382d15968c757fb9c5783cbd420156ea8ad2.tar.bz2 |
resolved conflicts for merge of 17ba2e6c to mnc-dev
Change-Id: I9177f0e994e1e8fba02faf5a13f2dcec950ec5e0
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/wm/WindowState.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/services/core/java/com/android/server/wm/WindowState.java b/services/core/java/com/android/server/wm/WindowState.java index eda7f79..b918a25 100644 --- a/services/core/java/com/android/server/wm/WindowState.java +++ b/services/core/java/com/android/server/wm/WindowState.java @@ -640,6 +640,16 @@ final class WindowState implements WindowManagerPolicy.WindowState { // Now make sure the window fits in the overall display frame. Gravity.applyDisplay(mAttrs.gravity, mDisplayFrame, mFrame); + // Calculate the outsets before the content frame gets shrinked to the window frame. + if (hasOutsets) { + mOutsets.set(Math.max(mContentFrame.left - mOutsetFrame.left, 0), + Math.max(mContentFrame.top - mOutsetFrame.top, 0), + Math.max(mOutsetFrame.right - mContentFrame.right, 0), + Math.max(mOutsetFrame.bottom - mContentFrame.bottom, 0)); + } else { + mOutsets.set(0, 0, 0, 0); + } + // Make sure the content and visible frames are inside of the // final window frame. mContentFrame.set(Math.max(mContentFrame.left, mFrame.left), @@ -677,16 +687,6 @@ final class WindowState implements WindowManagerPolicy.WindowState { Math.max(mFrame.right - mStableFrame.right, 0), Math.max(mFrame.bottom - mStableFrame.bottom, 0)); - if (hasOutsets) { - // We need to calculate outsets - mOutsets.set(Math.max(mContentFrame.left - mOutsetFrame.left, 0), - Math.max(mContentFrame.top - mOutsetFrame.top, 0), - Math.max(mOutsetFrame.right - mContentFrame.right, 0), - Math.max(mOutsetFrame.bottom - mContentFrame.bottom, 0)); - } else { - mOutsets.set(0, 0, 0, 0); - } - mCompatFrame.set(mFrame); if (mEnforceSizeCompat) { // If there is a size compatibility scale being applied to the |