[Android] Use the right separator in the album header
Nicolas Pomepuy
git at videolan.org
Wed May 18 09:50:19 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon May 16 15:00:03 2022 +0200| [98bff5a209f7f1841cebab315136be6829bbba91] | committer: Duncan McNamara
Use the right separator in the album header
> https://code.videolan.org/videolan/vlc-android/commit/98bff5a209f7f1841cebab315136be6829bbba91
---
.../src/org/videolan/vlc/gui/audio/AudioAlbumTracksAdapter.kt | 4 ++--
application/vlc-android/src/org/videolan/vlc/util/TextUtils.kt | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumTracksAdapter.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumTracksAdapter.kt
index a210a7405..b5e08656a 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumTracksAdapter.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumTracksAdapter.kt
@@ -25,7 +25,6 @@ package org.videolan.vlc.gui.audio
import android.annotation.TargetApi
import android.os.Build
-import android.util.Log
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
@@ -43,6 +42,7 @@ import org.videolan.vlc.BR
import org.videolan.vlc.databinding.AudioAlbumTrackItemBinding
import org.videolan.vlc.interfaces.IEventsHandler
import org.videolan.vlc.interfaces.IListEventsHandler
+import org.videolan.vlc.util.TextUtils
@ObsoleteCoroutinesApi
@ExperimentalCoroutinesApi
@@ -106,7 +106,7 @@ class AudioAlbumTracksAdapter @JvmOverloads constructor(
binding.trackNumber.visibility = View.GONE
var subtitle = Tools.millisToString(item.length)
if (item.artist.isNotEmpty())
- subtitle += " . ${item.artist}"
+ subtitle += " ${TextUtils.separator} ${item.artist}"
binding.subtitle.text = subtitle
}
diff --git a/application/vlc-android/src/org/videolan/vlc/util/TextUtils.kt b/application/vlc-android/src/org/videolan/vlc/util/TextUtils.kt
index 20e9ff6ec..6709adc68 100644
--- a/application/vlc-android/src/org/videolan/vlc/util/TextUtils.kt
+++ b/application/vlc-android/src/org/videolan/vlc/util/TextUtils.kt
@@ -32,7 +32,7 @@ object TextUtils {
/**
* Common string separator used in the whole app
*/
- private const val separator = '·'
+ const val separator = '·'
/**
* Create a string separated by the common [separator]
More information about the Android
mailing list