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

Commit a8cac0b7 authored by kaiyiz's avatar kaiyiz Committed by Steve Kondik
Browse files

Contacts: Contacts crash when tap "Tag" again

If set ellipsis at middle of text, Array index out Of bounds
exception will happen when calculate ellipsis.

Set ellipsis at end of the text.

CRs-Fixed: 541823

Change-Id: I4daba4fb7c74b827010227ab9a1501416b6307b9
parent 4997fcb9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -562,7 +562,7 @@ public abstract class LabeledEditorView extends LinearLayout implements Editor,
                textView.setGravity(Gravity.END | Gravity.CENTER_VERTICAL);
                textView.setGravity(Gravity.END | Gravity.CENTER_VERTICAL);
                textView.setTextAppearance(mContext, android.R.style.TextAppearance_Small);
                textView.setTextAppearance(mContext, android.R.style.TextAppearance_Small);
                textView.setTextColor(mTextColor);
                textView.setTextColor(mTextColor);
                textView.setEllipsize(TruncateAt.MIDDLE);
                textView.setEllipsize(TruncateAt.END);
            } else {
            } else {
                textView = (TextView) convertView;
                textView = (TextView) convertView;
            }
            }