feat: integrate sort recent searches chronologically

This commit is contained in:
j4mm3ris 2025-12-07 13:24:03 +02:00
parent 37842fd897
commit b89e18eebf
9 changed files with 1191 additions and 6 deletions

View file

@ -81,6 +81,7 @@ object Preferences {
private const val ALBUM_SORT_ORDER = "album_sort_order"
private const val DEFAULT_ALBUM_SORT_ORDER = Constants.ALBUM_ORDER_BY_NAME
private const val ARTIST_SORT_BY_ALBUM_COUNT= "artist_sort_by_album_count"
private const val SORT_SEARCH_CHRONOLOGICALLY= "sort_search_chronologically"
@JvmStatic
fun getServer(): String? {
@ -674,4 +675,9 @@ object Preferences {
else
return Constants.ARTIST_ORDER_BY_NAME
}
@JvmStatic
fun isSearchSortingChronologicallyEnabled(): Boolean {
return App.getInstance().preferences.getBoolean(SORT_SEARCH_CHRONOLOGICALLY, true)
}
}