Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/AmbientState.java +10 −2 Original line number Diff line number Diff line Loading @@ -533,8 +533,15 @@ public class AmbientState implements Dumpable { if (mDozeAmount == 1.0f && !isPulseExpanding()) { return mShelf.getHeight(); } int height = (int) Math.max(mLayoutMinHeight, int height; if (SceneContainerFlag.isEnabled()) { // TODO(b/192348384): This is probably incorrect as mContentHeight is not up to date. // Consider removing usages of getInnerHeight in flexiglass if possible. height = (int) Math.min(mLayoutHeight, mContentHeight) - mTopPadding; } else { height = (int) Math.max(mLayoutMinHeight, Math.min(mLayoutHeight, mContentHeight) - mTopPadding); } if (ignorePulseHeight) { return height; } Loading Loading @@ -571,6 +578,7 @@ public class AmbientState implements Dumpable { } public void setLayoutMinHeight(int layoutMinHeight) { SceneContainerFlag.assertInLegacyMode(); mLayoutMinHeight = layoutMinHeight; } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +5 −2 Original line number Diff line number Diff line Loading @@ -1308,9 +1308,11 @@ public class NotificationStackScrollLayout } private void updateAlgorithmLayoutMinHeight() { if (!SceneContainerFlag.isEnabled()) { mAmbientState.setLayoutMinHeight(mQsFullScreen || isHeadsUpTransition() ? getLayoutMinHeightInternal() : 0); } } /** * Updates the children views according to the stack scroll algorithm. Call this whenever Loading Loading @@ -2799,6 +2801,7 @@ public class NotificationStackScrollLayout } private int getLayoutMinHeightInternal() { SceneContainerFlag.assertInLegacyMode(); if (isHeadsUpTransition()) { ExpandableNotificationRow trackedHeadsUpRow = mAmbientState.getTrackedHeadsUpRow(); if (trackedHeadsUpRow.isAboveShelf()) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/AmbientState.java +10 −2 Original line number Diff line number Diff line Loading @@ -533,8 +533,15 @@ public class AmbientState implements Dumpable { if (mDozeAmount == 1.0f && !isPulseExpanding()) { return mShelf.getHeight(); } int height = (int) Math.max(mLayoutMinHeight, int height; if (SceneContainerFlag.isEnabled()) { // TODO(b/192348384): This is probably incorrect as mContentHeight is not up to date. // Consider removing usages of getInnerHeight in flexiglass if possible. height = (int) Math.min(mLayoutHeight, mContentHeight) - mTopPadding; } else { height = (int) Math.max(mLayoutMinHeight, Math.min(mLayoutHeight, mContentHeight) - mTopPadding); } if (ignorePulseHeight) { return height; } Loading Loading @@ -571,6 +578,7 @@ public class AmbientState implements Dumpable { } public void setLayoutMinHeight(int layoutMinHeight) { SceneContainerFlag.assertInLegacyMode(); mLayoutMinHeight = layoutMinHeight; } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +5 −2 Original line number Diff line number Diff line Loading @@ -1308,9 +1308,11 @@ public class NotificationStackScrollLayout } private void updateAlgorithmLayoutMinHeight() { if (!SceneContainerFlag.isEnabled()) { mAmbientState.setLayoutMinHeight(mQsFullScreen || isHeadsUpTransition() ? getLayoutMinHeightInternal() : 0); } } /** * Updates the children views according to the stack scroll algorithm. Call this whenever Loading Loading @@ -2799,6 +2801,7 @@ public class NotificationStackScrollLayout } private int getLayoutMinHeightInternal() { SceneContainerFlag.assertInLegacyMode(); if (isHeadsUpTransition()) { ExpandableNotificationRow trackedHeadsUpRow = mAmbientState.getTrackedHeadsUpRow(); if (trackedHeadsUpRow.isAboveShelf()) { Loading