We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a60f33 commit 07ed46cCopy full SHA for 07ed46c
android/src/main/java/expo/modules/speechrecognition/ExpoSpeechService.kt
@@ -433,11 +433,11 @@ class ExpoSpeechService(
433
*/
434
private fun resolveSourceUri(sourceUri: String): File =
435
when {
436
- // Local file path without URI scheme
437
- !sourceUri.startsWith("https://") && !sourceUri.startsWith("file://") -> File(sourceUri)
438
-
439
// File URI
440
sourceUri.startsWith("file://") -> File(URI(sourceUri))
+
+ // Local file path without URI scheme
+ !sourceUri.startsWith("https://") -> File(sourceUri)
441
442
// HTTP URI - throw an error
443
else -> {
0 commit comments