am f84b8034: am b7559e02: am 56205fea: Merge change 23345 into donut

Merge commit 'f84b803478eeb3ce34da55f242d9b9685c6c943d'

* commit 'f84b803478eeb3ce34da55f242d9b9685c6c943d':
  Fix an emoji-measuring bug that caused an exception when editing a contact.
This commit is contained in:
Eric Fischer
2009-09-01 12:16:01 -07:00
committed by Android Git Automerger

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