Skip to content

Commit 02795c7

Browse files
authored
Merge pull request #408 from smartdevicelink/bugfix/present-alert-no-audio
Fix check for supported audio files in AlertManager
2 parents 8978435 + 30d0fc9 commit 02795c7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/js/src/manager/screen/utils/_PresentAlertOperation.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,11 @@ class _PresentAlertOperation extends _Task {
338338
const alertAudioData = alertView.getAudio();
339339
const ttsChunks = [];
340340

341-
if (!this.supportsAlertAudioFile()) {
342-
for (const chunk of alertAudioData.getAudioData()) {
343-
if (chunk.getType() === SpeechCapabilities.FILE && !this.supportsAlertAudioFile()) {
344-
continue;
345-
}
346-
ttsChunks.push(chunk);
341+
for (const chunk of alertAudioData.getAudioData()) {
342+
if (chunk.getType() === SpeechCapabilities.FILE && !this.supportsAlertAudioFile()) {
343+
continue;
347344
}
345+
ttsChunks.push(chunk);
348346
}
349347

350348
return ttsChunks.length > 0 ? ttsChunks : null;

0 commit comments

Comments
 (0)