made button off mode better visible
This commit is contained in:
parent
a98c9e2ffd
commit
515690abac
|
@ -424,7 +424,7 @@ class PlayerFragment :
|
||||||
if (isEnabled) {
|
if (isEnabled) {
|
||||||
shuffleButton.alpha = 1f
|
shuffleButton.alpha = 1f
|
||||||
} else {
|
} else {
|
||||||
shuffleButton.alpha = 0.6f
|
shuffleButton.alpha = 0.3f
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -436,7 +436,7 @@ class PlayerFragment :
|
||||||
requireContext(), R.attr.media_repeat_off
|
requireContext(), R.attr.media_repeat_off
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
repeatButton.alpha = 0.6f
|
repeatButton.alpha = 0.3f
|
||||||
}
|
}
|
||||||
1 -> {
|
1 -> {
|
||||||
repeatButton.setImageDrawable(
|
repeatButton.setImageDrawable(
|
||||||
|
|
|
@ -94,7 +94,8 @@ class PlaybackService : MediaLibraryService(), KoinComponent {
|
||||||
// Create a renderer with HW rendering support
|
// Create a renderer with HW rendering support
|
||||||
val renderer = DefaultRenderersFactory(this)
|
val renderer = DefaultRenderersFactory(this)
|
||||||
|
|
||||||
if (Settings.useHwOffload) renderer.setEnableAudioOffload(true)
|
if (Settings.useHwOffload)
|
||||||
|
renderer.setEnableAudioOffload(true)
|
||||||
|
|
||||||
// Create the player
|
// Create the player
|
||||||
player = ExoPlayer.Builder(this)
|
player = ExoPlayer.Builder(this)
|
||||||
|
|
Loading…
Reference in New Issue