Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL EXCEPTION #16

Open
easinlan66 opened this issue Sep 13, 2019 · 0 comments
Open

FATAL EXCEPTION #16

easinlan66 opened this issue Sep 13, 2019 · 0 comments

Comments

@easinlan66
Copy link

2019-09-13 16:02:23.721 8057-8186/com.allen.kotlinapp E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.allen.kotlinapp, PID: 8057
java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling android.support.v7.widget.RecyclerView{bf91f9 VFED..... ......ID 0,0-1080,1584 #7f08009d app:id/rv}, adapter:com.allen.kotlinapp.adapter.UpFetchAdapter@fa1353e, layout:android.support.v7.widget.LinearLayoutManager@1d0bf9f, context:com.allen.kotlinapp.UpFetchUseActivity@dcd146e
at android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:2880)
at android.support.v7.widget.RecyclerView$RecyclerViewDataObserver.onItemRangeInserted(RecyclerView.java:5300)
at android.support.v7.widget.RecyclerView$AdapterDataObservable.notifyItemRangeInserted(RecyclerView.java:12022)
at android.support.v7.widget.RecyclerView$Adapter.notifyItemRangeInserted(RecyclerView.java:7214)
at com.chad.library.adapter.base.BaseQuickAdapter.addData(BaseQuickAdapter.java:597)
at com.allen.kotlinapp.UpFetchUseActivity$startUpFetch$1.invokeSuspend(UpFetchUseActivity.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant