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

Commit 56205fea authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 23345 into donut

* changes:
  Fix an emoji-measuring bug that caused an exception when editing a contact.
parents 5126d3a3 a82e99a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1527,7 +1527,7 @@ public abstract class Layout {
                    if (bm != null) {
                        workPaint.set(paint);
                        Styled.measureText(paint, workPaint, text,
                                           offset, offset + 1, null);
                                           j, j + 2, null);

                        float wid = (float) bm.getWidth() *
                                    -workPaint.ascent() / bm.getHeight();