aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiger <tigerhuang@google.com>2023-09-01 07:23:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-09-01 07:23:49 +0000
commit829217ebc537878f990c2f7aa88f3272266a651e (patch)
tree464f9f9847b4f3137a9088fddfad8e731e606a47
parentd755e33298a29b5a31b8cec97c8f02d739fb045e (diff)
parent3dcba12da0276de2f6c61325908c6b98e66e005b (diff)
downloadlayoutlib-829217ebc537878f990c2f7aa88f3272266a651e.tar.gz
Adapt change of calculateInsets am: 813c3565e5 am: 3dcba12da0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/layoutlib/+/24598189 Change-Id: I933ad71694cd4ea6ff0997dba1d68a0d8deadcff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--bridge/src/android/view/WindowManagerImpl.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/bridge/src/android/view/WindowManagerImpl.java b/bridge/src/android/view/WindowManagerImpl.java
index e8b9fcf802..eb1e22c736 100644
--- a/bridge/src/android/view/WindowManagerImpl.java
+++ b/bridge/src/android/view/WindowManagerImpl.java
@@ -272,16 +272,15 @@ public class WindowManagerImpl implements WindowManager {
private WindowInsets computeWindowInsets() {
try {
final InsetsState insetsState = new InsetsState();
- final boolean alwaysConsumeSystemBars =
- WindowManagerGlobal.getWindowManagerService().getWindowInsets(
- mContext.getDisplayId(), null /* token */, insetsState);
+ WindowManagerGlobal.getWindowManagerService().getWindowInsets(mContext.getDisplayId(),
+ null /* token */, insetsState);
final Configuration config = mContext.getResources().getConfiguration();
final boolean isScreenRound = config.isScreenRound();
- final int windowingMode = config.windowConfiguration.getWindowingMode();
+ final int activityType = config.windowConfiguration.getActivityType();
return insetsState.calculateInsets(getCurrentBounds(mContext),
- null /* ignoringVisibilityState*/, isScreenRound, alwaysConsumeSystemBars,
- SOFT_INPUT_ADJUST_NOTHING, 0, SYSTEM_UI_FLAG_VISIBLE, TYPE_APPLICATION,
- windowingMode, null /* typeSideMap */);
+ null /* ignoringVisibilityState */, isScreenRound, SOFT_INPUT_ADJUST_NOTHING,
+ 0 /* legacySystemUiFlags */, SYSTEM_UI_FLAG_VISIBLE, TYPE_APPLICATION,
+ activityType, null /* typeSideMap */);
} catch (RemoteException ignore) {
}
return null;