Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear playlistItems when navigating on YT #2587

Open
wants to merge 14 commits into
base: feature/Playlists
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Fixed activity indicator.

  • Loading branch information
Brandon-T committed Apr 14, 2020
commit e1aa572195c3a7bd0f051e825d02d4d5c9880c77
@@ -263,9 +263,6 @@ extension PlaylistViewController: UITableViewDelegate {
return
}

action.image = #imageLiteral(resourceName: "nowPlayingCheckmark")
action.backgroundColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)

self.currentItem = -1
Playlist.shared.currentlyPlayingInfo.value = nil
//currentItem.mimeType = response?.mimeType
@@ -292,6 +289,7 @@ extension PlaylistViewController: UITableViewDelegate {
if self.currentItem == indexPath.row {
self.currentItem = -1
Playlist.shared.currentlyPlayingInfo.value = nil
self.activityIndicator.stopAnimating()
self.playerView.stop()
}

@@ -302,7 +300,7 @@ extension PlaylistViewController: UITableViewDelegate {
})

cacheAction.image = cache.isEmpty ? #imageLiteral(resourceName: "menu-downloads") : #imageLiteral(resourceName: "nowPlayingCheckmark")
cacheAction.backgroundColor = cache.isEmpty ? #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1) : #colorLiteral(red: 0.501960814, green: 0.501960814, blue: 0.501960814, alpha: 1)
cacheAction.backgroundColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
deleteAction.backgroundColor = #colorLiteral(red: 0.812063769, green: 0.04556301224, blue: 0, alpha: 1)
return UISwipeActionsConfiguration(actions: [deleteAction, cacheAction])
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.