We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3998982 commit 046ea73Copy full SHA for 046ea73
app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.kt
@@ -1931,12 +1931,8 @@ class VideoDetailFragment :
1931
}
1932
1933
private fun findQueueInStack(queue: PlayQueue): StackItem? {
1934
- stack.descendingIterator().forEach { item ->
1935
- if (item?.playQueue == queue) {
1936
- return@findQueueInStack item
1937
- }
1938
1939
- return null
+ return stack.descendingIterator().asSequence()
+ .firstOrNull { it?.playQueue?.equals(queue) == true }
1940
1941
1942
private fun replaceQueueIfUserConfirms(onAllow: Runnable) {
0 commit comments