mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-17 00:36:00 +10:00
do not hide playImageView when loading
This commit is contained in:
@@ -45,12 +45,10 @@ class ChatLeftVideoCell: UICollectionViewCell {
|
||||
|
||||
if progress == 1.0 {
|
||||
loadingProgressView.hidden = true
|
||||
playImageView.hidden = false
|
||||
|
||||
} else {
|
||||
loadingProgressView.progress = progress
|
||||
loadingProgressView.hidden = false
|
||||
playImageView.hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,8 +56,6 @@ class ChatLeftVideoCell: UICollectionViewCell {
|
||||
|
||||
self.mediaTapAction = mediaTapAction
|
||||
|
||||
playImageView.hidden = message.downloadState != MessageDownloadState.Downloaded.rawValue
|
||||
|
||||
if let sender = message.fromFriend {
|
||||
AvatarCache.sharedInstance.roundAvatarOfUser(sender, withRadius: YepConfig.chatCellAvatarSize() * 0.5) { [unowned self] roundImage in
|
||||
dispatch_async(dispatch_get_main_queue()) {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<constraint firstAttribute="width" constant="126" id="g02-F3-bJ5"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<imageView hidden="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_playvideo" translatesAutoresizingMaskIntoConstraints="NO" id="kj2-PU-9Ld" userLabel="Play Image View">
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_playvideo" translatesAutoresizingMaskIntoConstraints="NO" id="kj2-PU-9Ld" userLabel="Play Image View">
|
||||
<rect key="frame" x="108" y="46" width="30" height="30"/>
|
||||
<animations/>
|
||||
</imageView>
|
||||
|
||||
Reference in New Issue
Block a user