am 56205fea: Merge change 23345 into donut
Merge commit '56205fea879543a50bb797016832416a8b48cabb' into eclair * commit '56205fea879543a50bb797016832416a8b48cabb': Fix an emoji-measuring bug that caused an exception when editing a contact.
This commit is contained in:
@@ -1527,7 +1527,7 @@ public abstract class Layout {
|
|||||||
if (bm != null) {
|
if (bm != null) {
|
||||||
workPaint.set(paint);
|
workPaint.set(paint);
|
||||||
Styled.measureText(paint, workPaint, text,
|
Styled.measureText(paint, workPaint, text,
|
||||||
offset, offset + 1, null);
|
j, j + 2, null);
|
||||||
|
|
||||||
float wid = (float) bm.getWidth() *
|
float wid = (float) bm.getWidth() *
|
||||||
-workPaint.ascent() / bm.getHeight();
|
-workPaint.ascent() / bm.getHeight();
|
||||||
|
|||||||
Reference in New Issue
Block a user