mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Merge pull request #3081 from Isira-Seneviratne/removeIf
Use removeIf() instead of removeAll().
This commit is contained in:
commit
2c93558e62
@ -62,7 +62,7 @@ class AudioPlayerFragment : BaseFragment(), AudioPlayerOptions {
|
||||
if (mainActivity.navController.currentDestination?.id == R.id.audioPlayerFragment) {
|
||||
mainActivity.navController.popBackStack()
|
||||
} else {
|
||||
mainActivity.navController.backQueue.removeAll {
|
||||
mainActivity.navController.backQueue.removeIf {
|
||||
it.destination.id == R.id.audioPlayerFragment
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user