feat: added ui for radio stations and podcast channels existence check

This commit is contained in:
antonio 2023-06-04 18:37:53 +02:00
parent ff1fb78d4a
commit a57487d38d
8 changed files with 589 additions and 85 deletions

View file

@ -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()
}
}