|
@@ -93,7 +93,6 @@ class NCAudioRecorderViewController: UIViewController, NCAudioRecorderDelegate {
|
|
|
|
|
|
if recording.state == .record {
|
|
if recording.state == .record {
|
|
|
|
|
|
- startDate = Date()
|
|
|
|
recording.stop()
|
|
recording.stop()
|
|
voiceRecordHUD.update(0.0)
|
|
voiceRecordHUD.update(0.0)
|
|
|
|
|
|
@@ -105,6 +104,7 @@ class NCAudioRecorderViewController: UIViewController, NCAudioRecorderDelegate {
|
|
|
|
|
|
do {
|
|
do {
|
|
try recording.record()
|
|
try recording.record()
|
|
|
|
+ startDate = Date()
|
|
startStopLabel.text = NSLocalizedString("_voice_memo_stop_", comment: "")
|
|
startStopLabel.text = NSLocalizedString("_voice_memo_stop_", comment: "")
|
|
} catch {
|
|
} catch {
|
|
print(error)
|
|
print(error)
|