summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2016-03-10 18:06:54 -0800
committer Selim Cinek <cinek@google.com> 2016-03-10 18:06:54 -0800
commit2268bcf00645f2aa8df1cb15e6a6c4097e9b9454 (patch)
treee180f2dcbed13956cee7ddb1f332c3ecaaf3eda7
parent78f400840bfc9faa096686e586de03328215f869 (diff)
Fixed a bug where text would still not animate
Bug: 27419215 Change-Id: I8c1cd4d4436ae019875f3e1ae5620c1673c7584e
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java3
1 files changed, 2 insertions, 1 deletions
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 d3393b330355..20dbc4a31b8a 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/TextViewTransformState.java
@@ -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);