Merge branch 'r3.9' into small_fixes
This commit is contained in:
commit
6ade751026
1 changed files with 6 additions and 3 deletions
|
@ -90,9 +90,12 @@ public class JSMediaCommandPlayerImpl extends MediaCommandPlayerImpl {
|
||||||
if (voiceDir.getName().contains("tts")) {
|
if (voiceDir.getName().contains("tts")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
for (File f : voiceDir.listFiles()) {
|
File[] files = voiceDir.listFiles();
|
||||||
if (f.getName().endsWith(IndexConstants.TTSVOICE_INDEX_EXT_JS)) {
|
if (files != null) {
|
||||||
return true;
|
for (File f : files) {
|
||||||
|
if (f.getName().endsWith(IndexConstants.TTSVOICE_INDEX_EXT_JS)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue