made button off mode better visible

This commit is contained in:
Holger Müller 2022-04-07 08:55:42 +02:00
parent a98c9e2ffd
commit 515690abac
2 changed files with 4 additions and 3 deletions

View File

@ -424,7 +424,7 @@ class PlayerFragment :
if (isEnabled) {
shuffleButton.alpha = 1f
} else {
shuffleButton.alpha = 0.6f
shuffleButton.alpha = 0.3f
}
}
@ -436,7 +436,7 @@ class PlayerFragment :
requireContext(), R.attr.media_repeat_off
)
)
repeatButton.alpha = 0.6f
repeatButton.alpha = 0.3f
}
1 -> {
repeatButton.setImageDrawable(

View File

@ -94,7 +94,8 @@ class PlaybackService : MediaLibraryService(), KoinComponent {
// Create a renderer with HW rendering support
val renderer = DefaultRenderersFactory(this)
if (Settings.useHwOffload) renderer.setEnableAudioOffload(true)
if (Settings.useHwOffload)
renderer.setEnableAudioOffload(true)
// Create the player
player = ExoPlayer.Builder(this)