Skip to content

Commit 442e55c

Browse files
committed
fix: reset tts decorations when TTS stops
1 parent 659e633 commit 442e55c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flutter_readium/ios/flutter_readium/Sources/flutter_readium/FlutterReadiumPlugin+TTS.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ extension FlutterReadiumPlugin : PublicationSpeechSynthesizerDelegate, AVTTSEngi
166166
case .stopped:
167167
playingUtterance = nil
168168
print(TAG, "tts stopped")
169+
updateDecorations(uttLocator: nil, rangeLocator: nil)
169170
clearNowPlaying()
170171
}
171172
}

0 commit comments

Comments
 (0)