Skip to content

Commit

Permalink
Increased the default delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd-Davies committed Aug 9, 2015
1 parent 7a4ea50 commit 86fc4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/todddavies/components/progressbar/ProgressWheel.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class ProgressWheel extends View {
//The amount of pixels to move the bar by on each draw
private float spinSpeed = 2f;
//The number of milliseconds to wait in between each draw
private int delayMillis = 0;
private int delayMillis = 10;
private float progress = 0;
boolean isSpinning = false;

Expand Down Expand Up @@ -239,7 +239,7 @@ private void parseAttributes(TypedArray a) {
barLength = (int) a.getDimension(R.styleable.ProgressWheel_barLength, barLength);

delayMillis = a.getInteger(R.styleable.ProgressWheel_delayMillis, delayMillis);
if (delayMillis < 0) { delayMillis = 0; }
if (delayMillis < 0) { delayMillis = 10; }

// Only set the text if it is explicitly defined
if (a.hasValue(R.styleable.ProgressWheel_text)) {
Expand Down

0 comments on commit 86fc4cb

Please sign in to comment.