commit | ca428bad52fa355ab68b7a139c0a761d5b405773 | [log] [tgz] |
---|---|---|
author | shawnlin <shawnlin@google.com> | Tue Jan 21 21:11:00 2020 +0800 |
committer | shawnlin <shawnlin@google.com> | Tue Jan 21 21:29:34 2020 +0800 |
tree | aa08828ca4db6593ffe7dbb1608090e8008ae885 | |
parent | 5cc8e2046470e80fb53f5c2672fc8661dc89d67c [diff] |
Fixed status bar window height not updating when enabling cutout. set the new bar height to mLpChanged. Bug: 136993073 Test: manual Change-Id: I8360fb7209c2c85f60fabfe28e4fbc2bb31d655e
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java index 7cf5147..fb30bde 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowController.java
@@ -121,8 +121,13 @@ apply(mCurrentState); } + private void applyHeight() { + mLpChanged.height = mBarHeight; + } + private void apply(State state) { applyForceStatusBarVisibleFlag(state); + applyHeight(); if (mLp != null && mLp.copyFrom(mLpChanged) != 0) { mWindowManager.updateViewLayout(mStatusBarView, mLp); }