mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
feat: hide and show radio and podcast tabs
This commit is contained in:
parent
16b95bacc5
commit
69e9d5686f
4 changed files with 37 additions and 2 deletions
|
|
@ -27,6 +27,8 @@ object Preferences {
|
|||
private const val QUEUE_SYNCING_COUNTDOWN = "queue_syncing_countdown"
|
||||
private const val ROUNDED_CORNER = "rounded_corner"
|
||||
private const val ROUNDED_CORNER_SIZE = "rounded_corner_size"
|
||||
private const val PODCAST_SECTION_VISIBILITY = "podcast_section_visibility"
|
||||
private const val RADIO_SECTION_VISIBILITY = "radio_section_visibility"
|
||||
|
||||
@JvmStatic
|
||||
fun getServer(): String? {
|
||||
|
|
@ -207,4 +209,14 @@ object Preferences {
|
|||
fun getRoundedCornerSize(): Int {
|
||||
return App.getInstance().preferences.getString(ROUNDED_CORNER_SIZE, "12")!!.toInt()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun isPodcastSectionVisible(): Boolean {
|
||||
return App.getInstance().preferences.getBoolean(PODCAST_SECTION_VISIBILITY, true)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun isRadioSectionVisible(): Boolean {
|
||||
return App.getInstance().preferences.getBoolean(RADIO_SECTION_VISIBILITY, true)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue