From 515690abaccd5405709b1fe877a9ef9c9bbf3e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Mu=CC=88ller?= Date: Thu, 7 Apr 2022 08:55:42 +0200 Subject: [PATCH] made button off mode better visible --- .../kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt | 4 ++-- .../kotlin/org/moire/ultrasonic/playback/PlaybackService.kt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt index 475094db..42234a63 100644 --- a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/fragment/PlayerFragment.kt @@ -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( diff --git a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/playback/PlaybackService.kt b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/playback/PlaybackService.kt index 03f556c5..c8724682 100644 --- a/ultrasonic/src/main/kotlin/org/moire/ultrasonic/playback/PlaybackService.kt +++ b/ultrasonic/src/main/kotlin/org/moire/ultrasonic/playback/PlaybackService.kt @@ -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)