better set loadingProgress logic

This commit is contained in:
nixzhu
2015-07-20 14:12:55 +08:00
parent 19f1c685a7
commit a7aa42d0b2
2 changed files with 4 additions and 0 deletions
@@ -59,6 +59,8 @@ class ChatLeftVideoCell: UICollectionViewCell {
if progress <= 1.0 {
loadingProgress = progress
} else if progress > 1.0 {
loadingProgress = 1.0
}
if let image = image {
@@ -47,6 +47,8 @@ class ChatRightVideoCell: ChatRightBaseCell {
if progress <= 1.0 {
loadingProgress = progress
} else if progress > 1.0 {
loadingProgress = 1.0
}
if let image = image {