java.lang.IllegalStateException: ViewHolder views must not be attached when created. Ensure that you are not passing 'true' to the attachToRoot parameter of LayoutInflater.inflate(..., boolean attachToRoot)
at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:7891)
at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6969)
at androidx.recyclerview.widget.GapWorker.prefetchPositionWithDeadline(GapWorker.java:294)
at androidx.recyclerview.widget.GapWorker.flushTaskWithDeadline(GapWorker.java:354)
at androidx.recyclerview.widget.GapWorker.flushTasksWithDeadline(GapWorker.java:370)
at androidx.recyclerview.widget.GapWorker.prefetch(GapWorker.java:377)
at androidx.recyclerview.widget.GapWorker.run(GapWorker.java:408)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7996)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:553)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Checklist
Affected version
1092 nightly
Steps to reproduce the bug
Expected behavior
No response
Actual behavior
No response
Screenshots/Screen recordings
I actually didn't really understand why the app crashed.It most likely crashed when opened in the background or from the phone's window.
Logs
Exception
Crash log
Affected Android/Custom ROM version
Android 12 It is not rooted.
Affected device model
Itel s23
Additional information
No response