use the sorting value at the bubble text
This commit is contained in:
parent
5f9108c549
commit
7d438429a4
2 changed files with 6 additions and 1 deletions
|
@ -83,5 +83,5 @@ class FoldersAdapter(
|
|||
}
|
||||
}
|
||||
|
||||
override fun onChange(position: Int) = folders.getOrNull(position)?.title ?: ""
|
||||
override fun onChange(position: Int) = folders.getOrNull(position)?.getBubbleText() ?: ""
|
||||
}
|
||||
|
|
|
@ -21,4 +21,9 @@ data class Folder(val title: String, val trackCount: Int) : Comparable<Folder> {
|
|||
|
||||
return result
|
||||
}
|
||||
|
||||
fun getBubbleText() = when {
|
||||
sorting and PLAYER_SORT_BY_TITLE != 0 -> title
|
||||
else -> trackCount.toString()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue