Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +18 −12 Original line number Diff line number Diff line Loading @@ -900,7 +900,7 @@ public class NotificationStackScrollLayout drawDebugInfo(canvas, y, Color.LTGRAY, /* label= */ "mAmbientState.getStackY() + mAmbientState.getStackHeight() = " + y); y = (int) (mAmbientState.getStackY() + mIntrinsicContentHeight); y = (int) (mAmbientState.getStackY() + getIntrinsicContentHeight()); drawDebugInfo(canvas, y, Color.YELLOW, /* label= */ "mAmbientState.getStackY() + mIntrinsicContentHeight = " + y); Loading Loading @@ -1586,7 +1586,7 @@ public class NotificationStackScrollLayout if (mMaxDisplayedNotifications != -1) { // The stack intrinsic height already contains the correct value when there is a limit // in the max number of notifications (e.g. as in keyguard). stackEndHeight = mIntrinsicContentHeight; stackEndHeight = getIntrinsicContentHeight(); } else { stackEndHeight = Math.max(0f, height - bottomMargin - topPadding); } Loading Loading @@ -1762,14 +1762,6 @@ public class NotificationStackScrollLayout updateClipping(); } /** * Return the height of the content ignoring the footer. */ public int getIntrinsicContentHeight() { SceneContainerFlag.assertInLegacyMode(); return (int) mIntrinsicContentHeight; } public void updateClipping() { boolean clipped = mRequestedClipBounds != null && !mInHeadsUpPinnedMode && !mHeadsUpAnimatingAway; Loading Loading @@ -2643,7 +2635,7 @@ public class NotificationStackScrollLayout (int) scrimTopPadding + (int) mNotificationStackSizeCalculator.computeHeight( /* notificationStackScrollLayout= */ this, mMaxDisplayedNotifications, shelfIntrinsicHeight); mIntrinsicContentHeight = height; setIntrinsicContentHeight(height); // The topPadding can be bigger than the regular padding when qs is expanded, in that // state the maxPanelHeight and the contentHeight should be bigger Loading Loading @@ -5525,7 +5517,6 @@ public class NotificationStackScrollLayout println(pw, "hideAmount", mAmbientState.getHideAmount()); println(pw, "ambientStateSwipingUp", mAmbientState.isSwipingUp()); println(pw, "maxDisplayedNotifications", mMaxDisplayedNotifications); println(pw, "intrinsicContentHeight", mIntrinsicContentHeight); println(pw, "intrinsicPadding", mIntrinsicPadding); println(pw, "bottomPadding", mBottomPadding); dumpRoundedRectClipping(pw); Loading Loading @@ -5553,6 +5544,7 @@ public class NotificationStackScrollLayout mScrollViewFields.dump(pw); if (!SceneContainerFlag.isEnabled()) { // fields which will be removed with SceneContainer println(pw, "intrinsicContentHeight", getIntrinsicContentHeight()); println(pw, "contentHeight", getContentHeight()); println(pw, "topPadding", getTopPadding()); } Loading Loading @@ -6969,4 +6961,18 @@ public class NotificationStackScrollLayout SceneContainerFlag.assertInLegacyMode(); mContentHeight = contentHeight; } /** * Use {@link ScrollViewFields#intrinsicStackHeight}, when SceneContainerFlag is enabled. * @return the height of the content ignoring the footer. */ public float getIntrinsicContentHeight() { SceneContainerFlag.assertInLegacyMode(); return mIntrinsicContentHeight; } private void setIntrinsicContentHeight(float intrinsicContentHeight) { SceneContainerFlag.assertInLegacyMode(); mIntrinsicContentHeight = intrinsicContentHeight; } } packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +1 −1 Original line number Diff line number Diff line Loading @@ -1188,7 +1188,7 @@ public class NotificationStackScrollLayoutController implements Dumpable { public int getIntrinsicContentHeight() { SceneContainerFlag.assertInLegacyMode(); return mView.getIntrinsicContentHeight(); return (int) mView.getIntrinsicContentHeight(); } /** Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +18 −12 Original line number Diff line number Diff line Loading @@ -900,7 +900,7 @@ public class NotificationStackScrollLayout drawDebugInfo(canvas, y, Color.LTGRAY, /* label= */ "mAmbientState.getStackY() + mAmbientState.getStackHeight() = " + y); y = (int) (mAmbientState.getStackY() + mIntrinsicContentHeight); y = (int) (mAmbientState.getStackY() + getIntrinsicContentHeight()); drawDebugInfo(canvas, y, Color.YELLOW, /* label= */ "mAmbientState.getStackY() + mIntrinsicContentHeight = " + y); Loading Loading @@ -1586,7 +1586,7 @@ public class NotificationStackScrollLayout if (mMaxDisplayedNotifications != -1) { // The stack intrinsic height already contains the correct value when there is a limit // in the max number of notifications (e.g. as in keyguard). stackEndHeight = mIntrinsicContentHeight; stackEndHeight = getIntrinsicContentHeight(); } else { stackEndHeight = Math.max(0f, height - bottomMargin - topPadding); } Loading Loading @@ -1762,14 +1762,6 @@ public class NotificationStackScrollLayout updateClipping(); } /** * Return the height of the content ignoring the footer. */ public int getIntrinsicContentHeight() { SceneContainerFlag.assertInLegacyMode(); return (int) mIntrinsicContentHeight; } public void updateClipping() { boolean clipped = mRequestedClipBounds != null && !mInHeadsUpPinnedMode && !mHeadsUpAnimatingAway; Loading Loading @@ -2643,7 +2635,7 @@ public class NotificationStackScrollLayout (int) scrimTopPadding + (int) mNotificationStackSizeCalculator.computeHeight( /* notificationStackScrollLayout= */ this, mMaxDisplayedNotifications, shelfIntrinsicHeight); mIntrinsicContentHeight = height; setIntrinsicContentHeight(height); // The topPadding can be bigger than the regular padding when qs is expanded, in that // state the maxPanelHeight and the contentHeight should be bigger Loading Loading @@ -5525,7 +5517,6 @@ public class NotificationStackScrollLayout println(pw, "hideAmount", mAmbientState.getHideAmount()); println(pw, "ambientStateSwipingUp", mAmbientState.isSwipingUp()); println(pw, "maxDisplayedNotifications", mMaxDisplayedNotifications); println(pw, "intrinsicContentHeight", mIntrinsicContentHeight); println(pw, "intrinsicPadding", mIntrinsicPadding); println(pw, "bottomPadding", mBottomPadding); dumpRoundedRectClipping(pw); Loading Loading @@ -5553,6 +5544,7 @@ public class NotificationStackScrollLayout mScrollViewFields.dump(pw); if (!SceneContainerFlag.isEnabled()) { // fields which will be removed with SceneContainer println(pw, "intrinsicContentHeight", getIntrinsicContentHeight()); println(pw, "contentHeight", getContentHeight()); println(pw, "topPadding", getTopPadding()); } Loading Loading @@ -6969,4 +6961,18 @@ public class NotificationStackScrollLayout SceneContainerFlag.assertInLegacyMode(); mContentHeight = contentHeight; } /** * Use {@link ScrollViewFields#intrinsicStackHeight}, when SceneContainerFlag is enabled. * @return the height of the content ignoring the footer. */ public float getIntrinsicContentHeight() { SceneContainerFlag.assertInLegacyMode(); return mIntrinsicContentHeight; } private void setIntrinsicContentHeight(float intrinsicContentHeight) { SceneContainerFlag.assertInLegacyMode(); mIntrinsicContentHeight = intrinsicContentHeight; } }
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +1 −1 Original line number Diff line number Diff line Loading @@ -1188,7 +1188,7 @@ public class NotificationStackScrollLayoutController implements Dumpable { public int getIntrinsicContentHeight() { SceneContainerFlag.assertInLegacyMode(); return mView.getIntrinsicContentHeight(); return (int) mView.getIntrinsicContentHeight(); } /** Loading