Skip to content

Commit

Permalink
Merge pull request ResearchKit#9 from syoung-smallwisdom/stop-talking
Browse files Browse the repository at this point in the history
Stop talking before skipping forward or backward.
  • Loading branch information
Erin-Mounts committed Apr 30, 2018
2 parents 9659082 + 5d1149c commit 37aeda2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ResearchUI/ResearchUI/iOS/RSDStepViewController.swift
Expand Up @@ -630,6 +630,7 @@ open class RSDStepViewController : UIViewController, RSDStepViewControllerProtoc
/// which requires custom navigation because the step has not "ended" normally. For example, this method
/// is called when a user taps the "skip" button.
open func jumpForward() {
RSDSpeechSynthesizer.shared.stopTalking()
stop()
self.taskController.goForward()
}
Expand Down

0 comments on commit 37aeda2

Please sign in to comment.