forked from mirrors/linphone-iphone
Disable MediaButton and SendButton when medias are loading
This commit is contained in:
parent
bbe5bcdee7
commit
e7ebd60998
1 changed files with 7 additions and 0 deletions
|
|
@ -198,6 +198,9 @@ import AVFoundation
|
|||
self.loadingView.isHidden = true
|
||||
self.messageView.isLoading = false
|
||||
self.loading.stopRotation()
|
||||
|
||||
self.messageView.sendButton.isEnabled = true
|
||||
self.messageView.pictureButton.isEnabled = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -230,6 +233,7 @@ import AVFoundation
|
|||
} else {
|
||||
self.messageView.sendButton.isEnabled = true
|
||||
}
|
||||
self.messageView.pictureButton.isEnabled = true
|
||||
|
||||
workItem?.cancel()
|
||||
for progressItem in progress{
|
||||
|
|
@ -1284,6 +1288,9 @@ import AVFoundation
|
|||
messageView.isLoading = true
|
||||
loading.startRotation()
|
||||
|
||||
self.messageView.sendButton.isEnabled = false
|
||||
self.messageView.pictureButton.isEnabled = false
|
||||
|
||||
self.mediaCount = mediaCollectionView.count
|
||||
self.newMediaCount = sequenceCount
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue