diff options
| author | Yunfan Chen <yunfanc@google.com> | 2022-06-28 18:24:11 +0900 |
|---|---|---|
| committer | Yunfan Chen <yunfanc@google.com> | 2022-07-06 16:41:38 +0900 |
| commit | 14f94246f63b6f050f03b51fde10edeaa171eade (patch) | |
| tree | 508571dd82a16254d3df04c75a748ab963bb6e8d /core/java/android/view/WindowLayout.java | |
| parent | 0251a89274a6b4d641aa1d3d751b80b2130279b1 (diff) | |
Introduce InsetsSizeOverride
This is to let the insets provider provide a different size to the given
windowing typed window. This can completely replace the ime frame
provider and the old ime frame provider is migrated.
Test: The task bar can still provide correct IME insets
Test: DisplayPolicyInsetsTests
Test: WmTests
Bug: 225200928
Change-Id: I5f8c4462cdc48011efda908e0337a86cbf2a417f
Diffstat (limited to 'core/java/android/view/WindowLayout.java')
| -rw-r--r-- | core/java/android/view/WindowLayout.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/view/WindowLayout.java b/core/java/android/view/WindowLayout.java index 0941ee8a714f..57a0330e3c18 100644 --- a/core/java/android/view/WindowLayout.java +++ b/core/java/android/view/WindowLayout.java @@ -274,7 +274,7 @@ public class WindowLayout { } if (extendedByCutout) { - extendFrameByCutout(attrs.gravity, displayCutoutSafe, outDisplayFrame, outFrame, + extendFrameByCutout(displayCutoutSafe, outDisplayFrame, outFrame, mTempRect); } @@ -291,7 +291,7 @@ public class WindowLayout { + " requestedVisibilities=" + requestedVisibilities); } - public static void extendFrameByCutout(int gravity, Rect displayCutoutSafe, + public static void extendFrameByCutout(Rect displayCutoutSafe, Rect displayFrame, Rect inOutFrame, Rect tempRect) { if (displayCutoutSafe.contains(inOutFrame)) { return; |
