1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-02-10 16:50:57 +01:00

Show folder header in Artist list

This commit is contained in:
tzugen 2021-12-05 14:05:42 +01:00
parent f2948cd3db
commit 6daa17efd5
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
3 changed files with 4 additions and 2 deletions

View File

@ -1 +0,0 @@
package org.moire.ultrasonic.adapters

View File

@ -67,6 +67,10 @@ class ArtistListModel(application: Application) : GenericListModel(application)
artists.postValue(result.toMutableList().sortedWith(comparator))
}
override fun showSelectFolderHeader(args: Bundle?): Boolean {
return true
}
companion object {
val comparator: Comparator<ArtistOrIndex> =
compareBy(Collator.getInstance()) { t -> t.name }

View File

@ -41,7 +41,6 @@ open class GenericListModel(application: Application) :
val musicFolders: MutableLiveData<List<MusicFolder>> = MutableLiveData(listOf())
@Suppress("UNUSED_PARAMETER")
open fun showSelectFolderHeader(args: Bundle?): Boolean {
return false
}