We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 726dfe5 commit 8eaaeeaCopy full SHA for 8eaaeea
library/src/main/java/com/daimajia/slider/library/SliderLayout.java
@@ -286,7 +286,9 @@ private void pauseAutoCycle(){
286
public void setDuration(long duration){
287
if(duration >= 500){
288
mSliderDuration = duration;
289
- startAutoCycle();
+ if(mAutoCycle && mCycling){
290
+ startAutoCycle();
291
+ }
292
}
293
294
@@ -307,6 +309,7 @@ public void stopAutoCycle(){
307
309
mResumingTask.cancel();
308
310
311
mAutoCycle = false;
312
+ mCycling = false;
313
314
315
/**
@@ -329,7 +332,7 @@ public void run() {
329
332
startAutoCycle();
330
333
331
334
};
- mResumingTimer.schedule(mResumingTask,6000);
335
+ mResumingTimer.schedule(mResumingTask, 6000);
336
337
338
0 commit comments