Merge change 23345 into donut

* changes:
  Fix an emoji-measuring bug that caused an exception when editing a contact.
This commit is contained in:
Android (Google) Code Review
2009-09-01 11:16:25 -07:00

View File

@@ -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();