An IndexOutOfBoundsException occurred in a RecyclerView when trying to access an item with an invalid position. The exception occurred when trying to layout the items in a GridLayoutManager. The issue seems to be caused by an inconsistency between the view holder positions and the adapter data.
An IndexOutOfBoundsException occurred in a RecyclerView when trying to access an item with an invalid position. The exception occurred when trying to layout the items in a GridLayoutManager. The issue seems to be caused by an inconsistency between the view holder positions and the adapter data.
An IndexOutOfBoundsException occurred in a RecyclerView when trying to access an item with an invalid position. The exception occurred when trying to layout the items in a GridLayoutManager. The issue seems to be caused by an inconsistency between the view holder positions and the adapter data.
adapter positionBaseViewHolder{e37b848 position=40 id=-1, oldPos=85, pLpos:40 scrap [attachedScrap] tmpDetached no parent} androidx.recyclerview.widget.RecyclerView{3d82f1b VFED..... ......I. 0,226- 1080,2064 #7f090a8c app:id/b70}, adapter:o.xm1@729b55d, layout:androidx.recyclerview.widget.GridLayoutManager@4f2bed2, context:com.snaptube.premium.activity.CleanActivity@a1da631 at androidx.recyclerview.widget.RecyclerView$s.ˇ(:10) at androidx.recyclerview.widget.RecyclerView$s.ʳ(:5) at androidx.recyclerview.widget.RecyclerView$s.ˍ(:1) at androidx.recyclerview.widget.RecyclerView$s.ˌ(:1) at androidx.recyclerview.widget.LinearLayoutManager$c.ˏ(:3) at androidx.recyclerview.widget.GridLayoutManager.layoutChunk(:12) at androidx.recyclerview.widget.LinearLayoutManager.fill(:9) at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(:64) at androidx.recyclerview.widget.GridLayoutManager.onLayoutChildren(:3) at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep1(:31) at androidx.recyclerview.widget.RecyclerView.dispatchLayout(:7) at androidx.recyclerview.widget.RecyclerView.consumePendingUpdateOperations(:18) at androidx.recyclerview.widget.RecyclerView$z.run(:5) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972) at android.view.Choreographer.doCallbacks(Choreographer.java:796) at android.view.Choreographer.doFrame(Choreographer.java:727) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:250) at android.app.ActivityThread.main(ActivityThread.java:7886) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:970)