mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
feat: as an option show the item's rating and whether it is marked as a favorite
This commit is contained in:
parent
4b9eaa8c3d
commit
58d540b939
12 changed files with 70 additions and 14 deletions
|
|
@ -56,6 +56,7 @@ object Preferences {
|
|||
private const val ALWAYS_ON_DISPLAY = "always_on_display"
|
||||
private const val AUDIO_QUALITY_PER_ITEM = "audio_quality_per_item"
|
||||
private const val HOME_SECTOR_LIST = "home_sector_list"
|
||||
private const val RATING_PER_ITEM = "rating_per_item"
|
||||
|
||||
|
||||
@JvmStatic
|
||||
|
|
@ -396,4 +397,9 @@ object Preferences {
|
|||
fun setHomeSectorList(extension: List<HomeSector>?) {
|
||||
App.getInstance().preferences.edit().putString(HOME_SECTOR_LIST, Gson().toJson(extension)).apply()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun showItemRating(): Boolean {
|
||||
return App.getInstance().preferences.getBoolean(RATING_PER_ITEM, false)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue