[feat] - Manage audio focus
This commit is contained in:
parent
f86c30c608
commit
67e9707b10
39 changed files with 86 additions and 1 deletions
|
@ -164,4 +164,5 @@ const val WALLPAPER_ACCENT = "wallpaper_accent"
|
|||
const val SCREEN_ON_LYRICS = "screen_on_lyrics"
|
||||
const val CIRCLE_PLAY_BUTTON = "circle_play_button"
|
||||
const val SWIPE_ANYWHERE_NOW_PLAYING = "swipe_anywhere_now_playing"
|
||||
const val PAUSE_HISTORY = "pause_history"
|
||||
const val PAUSE_HISTORY = "pause_history"
|
||||
const val MANAGE_AUDIO_FOCUS = "manage_audio_focus"
|
|
@ -326,6 +326,11 @@ object PreferenceUtil {
|
|||
TOGGLE_FULL_SCREEN, false
|
||||
)
|
||||
|
||||
val isAudioFocusEnabled
|
||||
get() = sharedPreferences.getBoolean(
|
||||
MANAGE_AUDIO_FOCUS, false
|
||||
)
|
||||
|
||||
val isLockScreen get() = sharedPreferences.getBoolean(LOCK_SCREEN, false)
|
||||
|
||||
fun isAllowedToDownloadMetadata(): Boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue