[Android] Remove thin spaces from display subtitle

Robert Stone git at videolan.org
Wed Jul 27 08:03:11 UTC 2022


vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Mon Jul 18 22:32:00 2022 -0700| [4eab963a97af6ce61e2875cffbd4f5b1a0a12c1f] | committer: Nicolas Pomepuy

Remove thin spaces from display subtitle

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

 application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt b/application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
index c28829e72..4bb126162 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/MediaUtils.kt
@@ -395,8 +395,7 @@ object MediaUtils {
         val isArtistUnknown = artist == getMediaString(ctx, R.string.unknown_artist)
         val prefix = if (mediaSize > 1) "${mediaPosition + 1} / $mediaSize" else null
         val suffix = if (!isArtistUnknown && !isAlbumUnknown) TextUtils.separatedString('-', artist.markBidi(), album.markBidi()) else null
-        //Replace full-spaces with thin-spaces (Unicode 2009)}
-        return TextUtils.separatedString(prefix, suffix).replace(" ", "\u2009")
+        return TextUtils.separatedString(prefix, suffix)
     }
 
     fun getMediaTitle(mediaWrapper: MediaWrapper) = mediaWrapper.title



More information about the Android mailing list