Checklist
Describe the bug
Queueing up a video that has already passed crashes the app
Version
5.2.3-beta
Frequency
Always (100% of the time)
Device
Android 16
Steps to reproduce the bug
- watch a video
- queue another video (so when the video ends, another video automatically starts)
- wait until the video is about to end
- go to the suggested next videos and hold, so the "enqueue" button shows up
- let the video end and automatically continue on to the next video
- click enqueue
- the app crashes
Video: https://drive.google.com/file/d/1y5A6zwMBK3b3M28W77sFour4XFPebt6w/view?usp=drivesdk
Additional context
java.lang.IllegalStateException: Fragment RelatedItemsFragment{465323e} (7b9211a3-0264-4b18-baa1-adc1465d684a) not attached to a context.
at okhttp3.internal._UtilJvmKt$$ExternalSyntheticLambda0.m$2(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:25)
at androidx.fragment.app.Fragment.requireContext(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:16)
at org.schabi.newpipe.about.AboutActivity$$ExternalSyntheticLambda0.onClick(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:11)
at org.schabi.newpipe.local.feed.FeedFragment$$ExternalSyntheticLambda21.onClick(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:325)
at androidx.appcompat.app.AlertController$AlertParams$3.onItemClick(r8-map-id-e91444551cd6c13a0c007ffccf8dba424ddff2166555a655c499e0f6501b2247:9)
at android.widget.AdapterView.performItemClick(AdapterView.java:380)
at android.widget.AbsListView.performItemClick(AbsListView.java:1393)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3714)
at android.widget.AbsListView$3.run(AbsListView.java:4913)
at android.os.Handler.handleCallback(Handler.java:1070)
at android.os.Handler.dispatchMessage(Handler.java:125)
at android.os.Looper.dispatchMessage(Looper.java:358)
at android.os.Looper.loopOnce(Looper.java:288)
at android.os.Looper.loop(Looper.java:392)
at android.app.ActivityThread.main(ActivityThread.java:10346)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:638)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:972)
Checklist
Describe the bug
Queueing up a video that has already passed crashes the app
Version
5.2.3-beta
Frequency
Always (100% of the time)
Device
Android 16
Steps to reproduce the bug
Video: https://drive.google.com/file/d/1y5A6zwMBK3b3M28W77sFour4XFPebt6w/view?usp=drivesdk
Additional context