Comments (7)
I'm sorry it took so long... Can you guys please check if the problem is solved in version 2.3.0?
from lastadapter.
Hi @alenjularic
I've never seen this problem and no one else reported it. Can you please make sure you are using it correctly? I'll check it as well. Can you please let me know if you're using an ObservableList or just a regular List?
I've never actually liked the line that you mention since position 0 should be a valid position.
Thanks.
from lastadapter.
Same problem here, it happens only if I filter the data (less data in list) and call notifyDataSetChanged()
Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
at java.util.ArrayList.get(ArrayList.java:411)
at com.github.nitrico.lastadapter.LastAdapter.getType(LastAdapter.kt:178)
at com.github.nitrico.lastadapter.LastAdapter.onViewRecycled(LastAdapter.kt:132)
at com.github.nitrico.lastadapter.LastAdapter.onViewRecycled(LastAdapter.kt:27)
at android.support.v7.widget.RecyclerView$Recycler.dispatchViewRecycled(RecyclerView.java:6182)
from lastadapter.
Same problem here. When the list is filtered with the less data than the previous one.
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position 10(offset:10).state:50 android.support.v7.widget.RecyclerView{a6d485 VFED..... ........ 0,0-1080,1548 #7f0900c4 app:id/rcv_news_latest}, adapter:com.github.nitrico.lastadapter.LastAdapter@fa732da, layout:android.support.v7.widget.LinearLayoutManager@a4b430b, context:com.example.main.views.MainActivity@1101dba
at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5628)
at android.support.v7.widget.GapWorker.prefetchPositionWithDeadline(GapWorker.java:285)
at android.support.v7.widget.GapWorker.flushTaskWithDeadline(GapWorker.java:342)
at android.support.v7.widget.GapWorker.flushTasksWithDeadline(GapWorker.java:358)
at android.support.v7.widget.GapWorker.prefetch(GapWorker.java:365)
at android.support.v7.widget.GapWorker.run(GapWorker.java:396)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
from lastadapter.
Same problem. Removing item from list and causes IndexOfBound.
from lastadapter.
I still don't understand why this exception occurred but when i change my list to observable list my problem is solved.
@nitrico Please check this issue it's really a major issue.
from lastadapter.
No problem @nitrico. Yes it's fixed for me in 2.3.0. Thank you so much!
from lastadapter.
Related Issues (20)
- First Item of recyclerview not clickable HOT 2
- Mixing version can lead to runtime crashes HOT 4
- How to use payloads refresh single item special element ?
- Changelog for version 2.3.0? HOT 3
- bind ViewModel is better than bind Model HOT 1
- How to Redraw/notifyDatachange when after property value change HOT 2
- How to use more <data></data> and more BR ? HOT 2
- Add the posibilitie to use RealmResult
- How listen item click listener HOT 2
- DataBinderMapperImpl not generated HOT 9
- Crash on LayoutHandler in kotlin HOT 1
- How to add item HOT 1
- AndroidX Support HOT 4
- kapt databinding error HOT 3
- Use DiffUtil to update list content HOT 2
- Support binding to LiveData (pass LifecycleOwner to items)
- Question: How to Set Single Selection Item? HOT 1
- Bind issues after Android Studio 3.2 release HOT 3
- PageableList
- Please move to mavenCentral (JCenter is closing down) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lastadapter.