don't show rem text when -1

This commit is contained in:
Eric House 2012-07-12 06:15:53 -07:00
parent 11bd4a73fe
commit d3b56f4167

View file

@ -479,6 +479,9 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
public void measureRemText( Rect r, int nTilesLeft, int[] width,
int[] height )
{
if ( 0 > nTilesLeft ) {
width[0] = height[0] = 0;
} else {
// should cache a formatter
m_remText = String.format( "%d", nTilesLeft );
m_fillPaint.setTextSize( m_mediumFontHt );
@ -492,6 +495,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
width[0] = minWidth;
height[0] = m_boundsScratch.height();
}
}
public void drawRemText( Rect rInner, Rect rOuter, int nTilesLeft,
boolean focussed )