Skip to content

Commit

Permalink
Merge branch 'temp-integration-pt3' of github.com:oppia/oppia-android…
Browse files Browse the repository at this point in the history
… into temp-integration-pt3
  • Loading branch information
BenHenning committed Dec 5, 2019
2 parents 5fb1395 + 331fda3 commit 2116427
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ class StateFragmentPresenter @Inject constructor(
feedbackId = null
}
} else if (it == AudioViewModel.UiAudioPlayStatus.PREPARED) {
if(isAudioShowing() && !isFeedbackPlaying){
autoPlayAudio = true
}
if (autoPlayAudio) {
autoPlayAudio = false
audioFragmentInterface.playAudio()
Expand Down Expand Up @@ -333,6 +336,8 @@ class StateFragmentPresenter @Inject constructor(
val scrollToTop = ::currentStateName.isInitialized && currentStateName != ephemeralState.state.name
currentStateName = ephemeralState.state.name

isFeedbackPlaying = false

showOrHideAudioByState(ephemeralState.state)
if (isAudioShowing()) {
(getAudioFragment() as AudioFragmentInterface).setVoiceoverMappings(explorationId, currentStateName, feedbackId)
Expand Down

0 comments on commit 2116427

Please sign in to comment.