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:
parent
f2948cd3db
commit
6daa17efd5
@ -1 +0,0 @@
|
||||
package org.moire.ultrasonic.adapters
|
@ -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 }
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user