mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-08-22 10:09:39 +00:00
Apply Kotlin suggestion by @Isira-Seneviratne
This commit is contained in:
parent
3998982002
commit
046ea7301b
@ -1931,12 +1931,8 @@ class VideoDetailFragment :
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun findQueueInStack(queue: PlayQueue): StackItem? {
|
private fun findQueueInStack(queue: PlayQueue): StackItem? {
|
||||||
stack.descendingIterator().forEach { item ->
|
return stack.descendingIterator().asSequence()
|
||||||
if (item?.playQueue == queue) {
|
.firstOrNull { it?.playQueue?.equals(queue) == true }
|
||||||
return@findQueueInStack item
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun replaceQueueIfUserConfirms(onAllow: Runnable) {
|
private fun replaceQueueIfUserConfirms(onAllow: Runnable) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user