[Android] Fix Kotlin uppercase function

Robert Stone git at videolan.org
Mon May 23 06:32:37 UTC 2022


vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Sun May 22 23:09:40 2022 -0700| [dfc836a8ba0b9d4e51773ba3d1792f97e3074752] | committer: Robert Stone

Fix Kotlin uppercase function

> https://code.videolan.org/videolan/vlc-android/commit/dfc836a8ba0b9d4e51773ba3d1792f97e3074752
---

 application/tools/src/main/java/org/videolan/tools/Strings.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/tools/src/main/java/org/videolan/tools/Strings.kt b/application/tools/src/main/java/org/videolan/tools/Strings.kt
index fd2291861..7bcfdaf92 100644
--- a/application/tools/src/main/java/org/videolan/tools/Strings.kt
+++ b/application/tools/src/main/java/org/videolan/tools/Strings.kt
@@ -92,7 +92,7 @@ fun String.firstLetterUppercase(): String {
         return ""
     }
     return if (length == 1) {
-        lowercase(Locale.getDefault())
+        uppercase(Locale.getDefault())
     } else Character.toUpperCase(this[0]) + substring(1).lowercase(Locale.getDefault())
 }
 



More information about the Android mailing list