feat: parameterized track sharing feature

This commit is contained in:
antonio 2023-09-17 18:51:22 +02:00
parent 8ab011781e
commit 0fe4636fe1
10 changed files with 55 additions and 17 deletions

View file

@ -39,6 +39,7 @@ object Preferences {
private const val AUDIO_TRANSCODE_DOWNLOAD_PRIORITY = "audio_transcode_download_priority"
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"
@JvmStatic
fun getServer(): String? {
@ -313,4 +314,9 @@ object Preferences {
fun getAudioTranscodeFormatTranscodedDownload(): String {
return App.getInstance().preferences.getString(AUDIO_TRANSCODE_FORMAT_DOWNLOAD, "raw")!!
}
@JvmStatic
fun isSharingEnabled(): Boolean {
return App.getInstance().preferences.getBoolean(SHARE, false)
}
}