diff options
| author | Jorim Jaggi <jjaggi@google.com> | 2016-05-13 15:24:39 -0700 |
|---|---|---|
| committer | Jorim Jaggi <jjaggi@google.com> | 2016-05-16 23:18:14 +0000 |
| commit | 23bf5462f05b33ce4390d8370520e43b74dbec09 (patch) | |
| tree | e4c35084d0b368d38c2b40c4eb0821929512f788 /core/java/android | |
| parent | 29af3cab293dc7a19ca3b387c5507e521f66d0b7 (diff) | |
Handle multi-window for inset hint
We need to incorporate task bounds when calculating the inset hint
so we don't specify something wrong to the client which we correct
immediately after.
Bug: 28697105
Change-Id: I23cec7d6cc62a4d982e0796a867e803d4cce0803
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 908a99ddd91e..e6f5b8386d49 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -938,7 +938,11 @@ public interface WindowManagerPolicy { * be correct. * * @param attrs The LayoutParams of the window. - * @param rotation Rotation of the display. + * @param taskBounds The bounds of the task this window is on or {@code null} if no task is + * associated with the window. + * @param displayRotation Rotation of the display. + * @param displayWidth The width of the display. + * @param displayHeight The height of the display. * @param outContentInsets The areas covered by system windows, expressed as positive insets. * @param outStableInsets The areas covered by stable system windows irrespective of their * current visibility. Expressed as positive insets. @@ -946,8 +950,9 @@ public interface WindowManagerPolicy { * @return Whether to always consume the navigation bar. * See {@link #isNavBarForcedShownLw(WindowState)}. */ - public boolean getInsetHintLw(WindowManager.LayoutParams attrs, int rotation, - Rect outContentInsets, Rect outStableInsets, Rect outOutsets); + public boolean getInsetHintLw(WindowManager.LayoutParams attrs, Rect taskBounds, + int displayRotation, int displayWidth, int displayHeight, Rect outContentInsets, + Rect outStableInsets, Rect outOutsets); /** * Called when layout of the windows is finished. After this function has |
