Skip to content

Commit a43ae8c

Browse files
committed
change ArrayList to List
1 parent f4591f1 commit a43ae8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

AutoTextSwitcher/src/main/java/com/masoud/autotextswitcher/AutoTextSwitcher.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import android.widget.TextSwitcher;
88

99
import java.util.ArrayList;
10+
import java.util.List;
1011
import java.util.Arrays;
1112
import java.util.Timer;
1213
import java.util.TimerTask;
@@ -17,7 +18,7 @@ public class AutoTextSwitcher extends TextSwitcher
1718
private static final int DEFAULT_ANIMATION_TIME = 1000; // Milliseconds
1819

1920
private int index = 0;
20-
private ArrayList<CharSequence> textArray;
21+
private List<CharSequence> textArray;
2122
private long changeAnimationTime;
2223

2324
private Handler handler;
@@ -118,7 +119,7 @@ public void run()
118119
}
119120

120121

121-
public void setTextArray(ArrayList<CharSequence> textArray)
122+
public void setTextArray(List<CharSequence> textArray)
122123
{
123124
if (isTextAnimationIsRunning())
124125
stopTextAnimation();

0 commit comments

Comments
 (0)