mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
feat: added ui for radio stations and podcast channels existence check
This commit is contained in:
parent
ff1fb78d4a
commit
a57487d38d
8 changed files with 589 additions and 85 deletions
|
|
@ -215,8 +215,18 @@ object Preferences {
|
|||
return App.getInstance().preferences.getBoolean(PODCAST_SECTION_VISIBILITY, true)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun setPodcastSectionHidden() {
|
||||
App.getInstance().preferences.edit().putBoolean(PODCAST_SECTION_VISIBILITY, false).apply()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun isRadioSectionVisible(): Boolean {
|
||||
return App.getInstance().preferences.getBoolean(RADIO_SECTION_VISIBILITY, true)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun setRadioSectionHidden() {
|
||||
App.getInstance().preferences.edit().putBoolean(RADIO_SECTION_VISIBILITY, false).apply()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue