Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Commit 9751a38

Browse files
author
Matt Oakes
committed
Changed from seconds to milliseconds
1 parent d3e1572 commit 9751a38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

viewflow-example/res/layout/circle_layout.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
android:id="@+id/viewflowindic"
1212
android:layout_gravity="center_horizontal"
1313
app:inactiveType="fill"
14-
app:fadeOut="1" />
14+
app:fadeOut="1000" />
1515
<org.taptwo.android.widget.ViewFlow
1616
android:id="@+id/viewflow" android:layout_width="fill_parent"
1717
android:layout_height="fill_parent" app:sidebuffer="3"></org.taptwo.android.widget.ViewFlow>

viewflow/src/org/taptwo/android/widget/CircleFlowIndicator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public void setStrokeColor(int color) {
315315
* Resets the fade out timer to 0. Creating a new one if needed
316316
*/
317317
private void resetTimer() {
318-
// Only set the timer if we have a timeout of at least 1 second
318+
// Only set the timer if we have a timeout of at least 1 millisecond
319319
if (fadeOutTime > 0) {
320320
// Check if we need to create a new timer
321321
if (timer == null || timer._run == false) {
@@ -347,8 +347,8 @@ public void resetTimer() {
347347
protected Void doInBackground(Void... arg0) {
348348
while (_run) {
349349
try {
350-
// Wait for a second
351-
Thread.sleep(1000);
350+
// Wait for a millisecond
351+
Thread.sleep(1);
352352
// Increment the timer
353353
timer++;
354354

0 commit comments

Comments
 (0)