BRVAH_kotlin
BRVAH_kotlin copied to clipboard
FATAL EXCEPTION
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)