Synchronization of starred tracks with local downloads

This commit is contained in:
antonio 2023-03-13 21:10:10 +01:00
parent 1aba732ab9
commit cbb6239b90
5 changed files with 151 additions and 0 deletions

View file

@ -169,6 +169,13 @@ object Preferences {
.getBoolean(SYNC_STARRED_TRACKS_FOR_OFFLINE_USE, false)
}
@JvmStatic
fun setStarredSyncEnabled(isStarredSyncEnabled: Boolean) {
App.getInstance().preferences.edit().putBoolean(
SYNC_STARRED_TRACKS_FOR_OFFLINE_USE, isStarredSyncEnabled
).apply()
}
@JvmStatic
fun showServerUnreachableDialog(): Boolean {
return App.getInstance().preferences.getLong(