mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-06-12 21:42:48 +03: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))
|
artists.postValue(result.toMutableList().sortedWith(comparator))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun showSelectFolderHeader(args: Bundle?): Boolean {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val comparator: Comparator<ArtistOrIndex> =
|
val comparator: Comparator<ArtistOrIndex> =
|
||||||
compareBy(Collator.getInstance()) { t -> t.name }
|
compareBy(Collator.getInstance()) { t -> t.name }
|
||||||
|
@ -41,7 +41,6 @@ open class GenericListModel(application: Application) :
|
|||||||
|
|
||||||
val musicFolders: MutableLiveData<List<MusicFolder>> = MutableLiveData(listOf())
|
val musicFolders: MutableLiveData<List<MusicFolder>> = MutableLiveData(listOf())
|
||||||
|
|
||||||
@Suppress("UNUSED_PARAMETER")
|
|
||||||
open fun showSelectFolderHeader(args: Bundle?): Boolean {
|
open fun showSelectFolderHeader(args: Bundle?): Boolean {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user