You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My Code :
ArrayList<NavigationTabBar.Model> models = new ArrayList<>();
final String[] colors = mFloatingView.getResources().getStringArray(R.array.vertical_ntb);
Error Log :
Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at androidx.viewpager.widget.ViewPager.fakeDragBy(ViewPager.java:2603)
at devlight.io.library.ntb.NavigationTabBar.setModelIndex(NavigationTabBar.java:873)
at devlight.io.library.ntb.NavigationTabBar$10.run(NavigationTabBar.java:1649)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7562)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Note : I am using PagerAdapter in a service with a viewpager
I am unable to understand why does this error occured. Please help
The text was updated successfully, but these errors were encountered:
My Code :
ArrayList<NavigationTabBar.Model> models = new ArrayList<>();
final String[] colors = mFloatingView.getResources().getStringArray(R.array.vertical_ntb);
Error Log :
Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at androidx.viewpager.widget.ViewPager.fakeDragBy(ViewPager.java:2603)
at devlight.io.library.ntb.NavigationTabBar.setModelIndex(NavigationTabBar.java:873)
at devlight.io.library.ntb.NavigationTabBar$10.run(NavigationTabBar.java:1649)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7562)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Note : I am using PagerAdapter in a service with a viewpager
I am unable to understand why does this error occured. Please help
The text was updated successfully, but these errors were encountered: