File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
lib/src/main/java/com/turingtechnologies/materialscrollbar Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1919import android .content .Context ;
2020import android .graphics .Typeface ;
2121import android .graphics .drawable .GradientDrawable ;
22- import androidx .annotation .ColorInt ;
23- import androidx .core .content .ContextCompat ;
24- import androidx .core .view .ViewCompat ;
25- import androidx .recyclerview .widget .RecyclerView ;
2622import android .util .Log ;
2723import android .util .TypedValue ;
2824import android .view .ViewGroup ;
2925import android .widget .RelativeLayout ;
3026import android .widget .TextView ;
3127
28+ import androidx .annotation .ColorInt ;
29+ import androidx .core .content .ContextCompat ;
30+ import androidx .core .view .ViewCompat ;
31+ import androidx .recyclerview .widget .RecyclerView ;
32+
3233/**
3334 * Devs should not normally need to extend this class. Just use {@link CustomIndicator} instead.
3435 * However, this is public to leave the option open.
@@ -139,7 +140,7 @@ void setText(int section) {
139140 return ;
140141 }
141142 newText = getTextElement (section , adapter );
142- } catch (ArrayIndexOutOfBoundsException e ) {
143+ } catch (IndexOutOfBoundsException e ) {
143144 newText = "Error" ;
144145 }
145146 if (!textView .getText ().equals (newText )) {
You can’t perform that action at this time.
0 commit comments