mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-25 20:56:45 +10:00
Fix voice record crash bug
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>50</string>
|
||||
<string>51</string>
|
||||
<key>Fabric</key>
|
||||
<dict>
|
||||
<key>APIKey</key>
|
||||
|
||||
@@ -2242,7 +2242,7 @@ extension ConversationViewController: PullToRefreshViewDelegate {
|
||||
|
||||
func pulllToRefreshViewDidRefresh(pulllToRefreshView: PullToRefreshView) {
|
||||
|
||||
delay(0.7) {
|
||||
delay(0.5) {
|
||||
pulllToRefreshView.endRefreshingAndDoFurtherAction() { [weak self] in
|
||||
|
||||
if let strongSelf = self {
|
||||
|
||||
@@ -184,6 +184,10 @@ class Waver: UIView {
|
||||
|
||||
println("Begin compress")
|
||||
|
||||
if waveSamples.count < 1 {
|
||||
return nil
|
||||
}
|
||||
|
||||
let sampleMax = maxElement(waveSamples)
|
||||
|
||||
if sampleMax > 0 { // 防止除零错误
|
||||
|
||||
Reference in New Issue
Block a user