diff options
| author | Yunfan Chen <yunfanc@google.com> | 2021-08-26 06:30:15 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-08-26 06:30:15 +0000 |
| commit | 47c99da3675a4e182fa361931e0032586c347a9c (patch) | |
| tree | eae57ab617b2017cd7365a29060f5974777cd3a8 /core/java | |
| parent | 55c0fda826da49a34a269f80099f0b252f2833f0 (diff) | |
| parent | 8299a4c9ed070361d4690d5c3368c18b833d42b4 (diff) | |
Merge "Make window metrics contains all insets information"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/WindowManagerImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/view/WindowManagerImpl.java b/core/java/android/view/WindowManagerImpl.java index a2d3e3447354..7bd156b30acf 100644 --- a/core/java/android/view/WindowManagerImpl.java +++ b/core/java/android/view/WindowManagerImpl.java @@ -16,6 +16,7 @@ package android.view; +import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN; import static android.view.View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN; import static android.view.View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION; import static android.view.View.SYSTEM_UI_FLAG_VISIBLE; @@ -300,7 +301,6 @@ public final class WindowManagerImpl implements WindowManager { } } - // TODO(b/150095967): Set window type to LayoutParams private WindowInsets computeWindowInsets(Rect bounds) { // Initialize params which used for obtaining all system insets. final WindowManager.LayoutParams params = new WindowManager.LayoutParams(); @@ -322,10 +322,10 @@ public final class WindowManagerImpl implements WindowManager { .getWindowInsets(attrs, mContext.getDisplayId(), insetsState); final Configuration config = mContext.getResources().getConfiguration(); final boolean isScreenRound = config.isScreenRound(); - final int windowingMode = config.windowConfiguration.getWindowingMode(); return insetsState.calculateInsets(bounds, null /* ignoringVisibilityState*/, isScreenRound, alwaysConsumeSystemBars, SOFT_INPUT_ADJUST_NOTHING, attrs.flags, - SYSTEM_UI_FLAG_VISIBLE, attrs.type, windowingMode, null /* typeSideMap */); + SYSTEM_UI_FLAG_VISIBLE, attrs.type, WINDOWING_MODE_FULLSCREEN, + null /* typeSideMap */); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } |
