use the sorting value at the bubble text

This commit is contained in:
tibbi 2022-01-02 20:31:36 +01:00
parent 5f9108c549
commit 7d438429a4
2 changed files with 6 additions and 1 deletions

View file

@ -83,5 +83,5 @@ class FoldersAdapter(
}
}
override fun onChange(position: Int) = folders.getOrNull(position)?.title ?: ""
override fun onChange(position: Int) = folders.getOrNull(position)?.getBubbleText() ?: ""
}

View file

@ -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()
}
}