Skip to content
Snippets Groups Projects
Commit f6ee51db authored by Eshan Singh's avatar Eshan Singh Committed by Felix Paul Kühne
Browse files

MovieCollectionViewCell:Update the Cell according to Continue Playback Preference

MovieCollectionViewCell: Fix accidental removal

MovieCollectionViewCell:Use guard statement for checking the defaults value

MovieCollectionViewCell:Update Cell's Progress Bar According to ContinueVideoPlayback Setting

Xcode:Delete Warning File
parent 9a45483b
Branches master
No related tags found
No related merge requests found
......@@ -165,8 +165,15 @@ class MovieCollectionViewCell: BaseCollectionViewCell {
descriptionLabel.text = movie.mediaDuration()
thumbnailView.image = movie.thumbnailImage()
let progress = movie.progress
progressView.isHidden = progress == 0
progressView.progress = progress
guard let value = UserDefaults.standard.value(forKey: kVLCSettingContinuePlayback) as? Int else {
return
}
if value <= 0 {
progressView.isHidden = true
} else {
progressView.isHidden = progress < 0
progressView.progress = progress
}
newLabel.isHidden = !movie.isNew
sizeLabel.text = movie.formatSize()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment