feat: implemented settings for enabling or disabling music scrobbling

This commit is contained in:
antonio 2023-11-26 16:39:05 +01:00
parent 6b0ba573de
commit 133b5e4794
4 changed files with 28 additions and 1 deletions

View file

@ -40,6 +40,7 @@ object Preferences {
private const val MAX_BITRATE_DOWNLOAD = "max_bitrate_download"
private const val AUDIO_TRANSCODE_FORMAT_DOWNLOAD = "audio_transcode_format_download"
private const val SHARE = "share"
private const val SCROBBLING = "scrobbling"
private const val ESTIMATE_CONTENT_LENGTH = "estimate_content_length"
@JvmStatic
@ -321,6 +322,11 @@ object Preferences {
return App.getInstance().preferences.getBoolean(SHARE, false)
}
@JvmStatic
fun isScrobblingEnabled(): Boolean {
return App.getInstance().preferences.getBoolean(SCROBBLING, true)
}
@JvmStatic
fun askForEstimateContentLength(): Boolean {
return App.getInstance().preferences.getBoolean(ESTIMATE_CONTENT_LENGTH, false)