Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7fe953a authored by Raph Levien's avatar Raph Levien Committed by Android (Google) Code Review
Browse files

Merge "Fix bug 7250807 Ellipsizing is broken" into jb-mr1-dev

parents 97b4c44b 9d578a8b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -306,8 +306,13 @@ public class ContactListItemView extends ViewGroup
        // Also calculate their heights to get the total height for this entire view.

        if (isVisible(mNameTextView)) {
            // Caculate width for name text - this parallels similar measurement in onLayout.
            int nameTextWidth = effectiveWidth;
            if (mPhotoPosition != PhotoPosition.LEFT) {
                nameTextWidth -= mTextIndent;
            }
            mNameTextView.measure(
                    MeasureSpec.makeMeasureSpec(effectiveWidth, MeasureSpec.EXACTLY),
                    MeasureSpec.makeMeasureSpec(nameTextWidth, MeasureSpec.EXACTLY),
                    MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
            mNameTextViewHeight = mNameTextView.getMeasuredHeight();
        }