Skip to content

Commit

Permalink
change ArrayList to List
Browse files Browse the repository at this point in the history
  • Loading branch information
MasoudSaraf committed Jun 17, 2022
1 parent f4591f1 commit a43ae8c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.widget.TextSwitcher;

import java.util.ArrayList;
import java.util.List;
import java.util.Arrays;
import java.util.Timer;
import java.util.TimerTask;
Expand All @@ -17,7 +18,7 @@ public class AutoTextSwitcher extends TextSwitcher
private static final int DEFAULT_ANIMATION_TIME = 1000; // Milliseconds

private int index = 0;
private ArrayList<CharSequence> textArray;
private List<CharSequence> textArray;
private long changeAnimationTime;

private Handler handler;
Expand Down Expand Up @@ -118,7 +119,7 @@ public void run()
}


public void setTextArray(ArrayList<CharSequence> textArray)
public void setTextArray(List<CharSequence> textArray)
{
if (isTextAnimationIsRunning())
stopTextAnimation();
Expand Down

0 comments on commit a43ae8c

Please sign in to comment.