diff options
author | Tiger <tigerhuang@google.com> | 2023-09-01 07:23:49 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-09-01 07:23:49 +0000 |
commit | 829217ebc537878f990c2f7aa88f3272266a651e (patch) | |
tree | 464f9f9847b4f3137a9088fddfad8e731e606a47 | |
parent | d755e33298a29b5a31b8cec97c8f02d739fb045e (diff) | |
parent | 3dcba12da0276de2f6c61325908c6b98e66e005b (diff) | |
download | layoutlib-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.java | 13 |
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; |