Skip to content

Commit

Permalink
paint null
Browse files Browse the repository at this point in the history
  • Loading branch information
limxing committed May 21, 2017
1 parent 5fcfb16 commit 5d07351
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public PromptView(Activity context, Builder builder, PromptDialog promptDialog)
@Override
protected void onDraw(Canvas canvas) {


if (paint==null) return;
if (canvasWidth == 0) {
canvasWidth = getWidth();
canvasHeight = getHeight();
Expand All @@ -90,7 +90,7 @@ protected void onDraw(Canvas canvas) {
paint.setTextSize(density * builder.textSize);
paint.setAntiAlias(true);
paint.getTextBounds(text, 0, text.length(), textRect);
paint.getTextBounds(text, 0, text.length(), textRect);
// paint.getTextBounds(text, 0, text.length(), textRect);
float popWidth = 0;
float popHeight = 0;

Expand Down

0 comments on commit 5d07351

Please sign in to comment.