mirror of
https://github.com/antebudimir/tempus.git
synced 2026-04-15 16:27:26 +00:00
feat: integrate sort recent searches chronologically
This commit is contained in:
parent
37842fd897
commit
b89e18eebf
9 changed files with 1191 additions and 6 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue