Merge "Fixing incorrect mStable insets being set before user setup is complete" into rvc-dev am: f18b6b6490 am: 9f5c18592e am: bc922e71f2 am: 3c80d71b2f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11897529

Change-Id: Id78e189d711ba7661079046ab98ed4c35ac9ebfc
This commit is contained in:
TreeHugger Robot
2020-06-18 01:26:01 +00:00
committed by Automerger Merge Worker

View File

@@ -1833,10 +1833,11 @@ public class DisplayPolicy {
if (navBarPosition == NAV_BAR_BOTTOM) {
// It's a system nav bar or a portrait screen; nav bar goes on bottom.
final int top = cutoutSafeUnrestricted.bottom
- getNavigationBarHeight(rotation, uiMode);
final int topNavBar = cutoutSafeUnrestricted.bottom
- getNavigationBarFrameHeight(rotation, uiMode);
final int top = mNavButtonForcedVisible
? topNavBar
: cutoutSafeUnrestricted.bottom - getNavigationBarHeight(rotation, uiMode);
navigationFrame.set(0, topNavBar, displayWidth, displayFrames.mUnrestricted.bottom);
displayFrames.mStable.bottom = displayFrames.mStableFullscreen.bottom = top;
if (transientNavBarShowing) {