Android-PullToRefreshRecyclerView icon indicating copy to clipboard operation
Android-PullToRefreshRecyclerView copied to clipboard

Crash

Open AhmadullahSaikat opened this issue 6 years ago • 0 comments

java.lang.IllegalStateException: Cannot remove item decoration during a scroll  or layout

    at android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:2771)
    at android.support.v7.widget.RecyclerView$LayoutManager.assertNotInLayoutOrScroll(RecyclerView.java:7523)
    at android.support.v7.widget.LinearLayoutManager.assertNotInLayoutOrScroll(LinearLayoutManager.java:1352)
    at android.support.v7.widget.RecyclerView.removeItemDecoration(RecyclerView.java:1566)
    at com.lhh.ptrrv.library.PullToRefreshRecyclerView.setHasMoreItems(PullToRefreshRecyclerView.java:334)
    at com.lhh.ptrrv.library.PullToRefreshRecyclerView.access$800(PullToRefreshRecyclerView.java:22)
    at com.lhh.ptrrv.library.PullToRefreshRecyclerView$InterOnScrollListener.onScrolled(PullToRefreshRecyclerView.java:389)
    at android.support.v7.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:4844)
    at android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3909)
    at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3540)
    at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1756)
    at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:356)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:795)
    at android.view.Choreographer.doCallbacks(Choreographer.java:598)
    at android.view.Choreographer.doFrame(Choreographer.java:566)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:781)
    at android.os.Handler.handleCallback(Handler.java:810)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:189)
    at android.app.ActivityThread.main(ActivityThread.java:5532)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)

AhmadullahSaikat avatar May 21 '18 07:05 AhmadullahSaikat