Skip to content

Commit 14c6dc2

Browse files
authored
use better string formatting
1 parent 67f4755 commit 14c6dc2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/musicplayer/adapters/TracksAdapter.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,13 @@ class TracksAdapter(
207207

208208
private fun setupView(view: View, track: Track, holder: ViewHolder) {
209209
view.apply {
210+
setupViewBackground(activity)
210211
track_frame?.isSelected = selectedKeys.contains(track.hashCode())
211212
track_title.text = if (textToHighlight.isEmpty()) track.title else track.title.highlightTextPart(textToHighlight, properPrimaryColor)
212213
track_info.text = if (textToHighlight.isEmpty()) {
213-
track.artist + " - " + track.album
214+
"${track.artist} - ${track.album}"
214215
} else {
215-
( track.artist + " - " + track.album ).highlightTextPart(textToHighlight, properPrimaryColor)
216+
("${track.artist} - ${track.album}").highlightTextPart(textToHighlight, properPrimaryColor)
216217
}
217218
track_drag_handle.beVisibleIf(isPlaylistContent && selectedKeys.isNotEmpty())
218219
track_drag_handle.applyColorFilter(textColor)

0 commit comments

Comments
 (0)