Skip to content

Commit

Permalink
fix twice rendering on Kindle devices
Browse files Browse the repository at this point in the history
  • Loading branch information
takke committed May 14, 2014
1 parent 46612af commit f64ec0f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ private void updateTextSize(Rect viewBounds) {

mIconPaint.setTextSize(textSize);

mPath.reset(); // hack for Kindle HDX

mIconPaint.getTextPath(mIconUtfChars, 0, mIconUtfChars.length,
0, viewBounds.height(), mPath);
mPath.computeBounds(mPathBounds, true);
Expand Down

0 comments on commit f64ec0f

Please sign in to comment.