OSDN Git Service

Fixed a bug where text would still not animate
authorSelim Cinek <cinek@google.com>
Fri, 11 Mar 2016 02:06:54 +0000 (18:06 -0800)
committerSelim Cinek <cinek@google.com>
Fri, 11 Mar 2016 02:06:54 +0000 (18:06 -0800)
Bug: 27419215
Change-Id: I8c1cd4d4436ae019875f3e1ae5620c1673c7584e

packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java

index d3393b3..20dbc4a 100644 (file)
@@ -46,7 +46,8 @@ public class TextViewTransformState extends TransformState {
             if(TextUtils.equals(otherTvs.mText.getText(), mText.getText())) {
                 int ownEllipsized = getEllipsisCount();
                 int otherEllipsized = otherTvs.getEllipsisCount();
-                return ownEllipsized == otherEllipsized;
+                return ownEllipsized == otherEllipsized
+                        && mText.getHeight() == otherTvs.mText.getHeight();
             }
         }
         return super.sameAs(otherState);