diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java index 20dbc4a31b8ae..6fe5756ea9f8f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java @@ -47,12 +47,16 @@ public class TextViewTransformState extends TransformState { int ownEllipsized = getEllipsisCount(); int otherEllipsized = otherTvs.getEllipsisCount(); return ownEllipsized == otherEllipsized - && mText.getHeight() == otherTvs.mText.getHeight(); + && getInnerHeight(mText) == getInnerHeight(otherTvs.mText); } } return super.sameAs(otherState); } + private int getInnerHeight(TextView text) { + return text.getHeight() - text.getPaddingTop() - text.getPaddingBottom(); + } + private int getEllipsisCount() { Layout l = mText.getLayout(); if (l != null) {