Merge "Fix BigText transitions" into nyc-dev am: 2ab4f451dc

am: d49a86ceda

* commit 'd49a86ceda243515019d267d4fbecc3cc99cb456':
  Fix BigText transitions

Change-Id: Ife5601ffb5323f73e817881d47a7ead1c89f2504
This commit is contained in:
Adrian Roos
2016-06-03 16:13:44 +00:00
committed by android-build-merger

View File

@@ -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) {