[Android] Allow uppercase extensions for the soundfont picker
Nicolas Pomepuy
git at videolan.org
Thu Jun 22 12:40:35 UTC 2023
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jun 22 08:43:03 2023 +0200| [036e86f98fa9151b4570c93a8fa8ea3c9390675a] | committer: Duncan McNamara
Allow uppercase extensions for the soundfont picker
Fixes #2948
> https://code.videolan.org/videolan/vlc-android/commit/036e86f98fa9151b4570c93a8fa8ea3c9390675a
---
application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt b/application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
index c27f6cc429..70188d89cc 100644
--- a/application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
+++ b/application/vlc-android/src/org/videolan/vlc/util/FileUtils.kt
@@ -569,7 +569,7 @@ fun String.encodeMrlWithTrailingSlash():String {
}
fun Uri?.isSoundFont():Boolean {
- this?.lastPathSegment?.let { lastPathSegment ->
+ this?.lastPathSegment?.lowercase()?.let { lastPathSegment ->
FileUtils.getSoundFontExtensions().forEach {
if (lastPathSegment.endsWith(it)) return true
}
More information about the Android
mailing list