diff options
author | Xin Li <delphij@google.com> | 2023-10-17 10:08:39 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2023-10-17 10:08:39 -0700 |
commit | c8fd0020f25456fd90f20daf7fa7ba6c6e7bb472 (patch) | |
tree | e8abc63b3d6cdd8fd43cdad71752f0b3328c0b0f | |
parent | 30566c18a785bd7273f580d57c0668ea7dd8a5a7 (diff) | |
parent | f60d22bcee94bda7bb19403cb02945860bf1a85d (diff) | |
download | layoutlib-tmp_amf_315507370.tar.gz |
Merge 10952656tmp_amf_315507370
Merged-In: I968e4a90bfa57c838bd43c73839e817fe201ff95
Change-Id: Id88f6f00a1546ae459f36320b8979627b9767462
-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; |