Skip to content

Commit 86fc4cb

Browse files
committed
Increased the default delay
1 parent 7a4ea50 commit 86fc4cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/todddavies/components/progressbar/ProgressWheel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class ProgressWheel extends View {
6161
//The amount of pixels to move the bar by on each draw
6262
private float spinSpeed = 2f;
6363
//The number of milliseconds to wait in between each draw
64-
private int delayMillis = 0;
64+
private int delayMillis = 10;
6565
private float progress = 0;
6666
boolean isSpinning = false;
6767

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

241241
delayMillis = a.getInteger(R.styleable.ProgressWheel_delayMillis, delayMillis);
242-
if (delayMillis < 0) { delayMillis = 0; }
242+
if (delayMillis < 0) { delayMillis = 10; }
243243

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

0 commit comments

Comments
 (0)