From 049c90ed5a5e2baf35b74a3631e20a086b9d3206 Mon Sep 17 00:00:00 2001 From: twistios <54811436+twistios@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:43:49 +0100 Subject: [PATCH] fixed settings for expanded lyrics not showing - the settings now also show if is enabled (but the button is not) Co-authored-by: aneesh1122 <45353488+aneesh1122@users.noreply.github.com> --- .../fast4x/rimusic/ui/screens/settings/AppearanceSettings.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/settings/AppearanceSettings.kt b/composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/settings/AppearanceSettings.kt index 38340f35e..25dcf7242 100644 --- a/composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/settings/AppearanceSettings.kt +++ b/composeApp/src/androidMain/kotlin/it/fast4x/rimusic/ui/screens/settings/AppearanceSettings.kt @@ -63,6 +63,7 @@ import it.fast4x.rimusic.utils.disablePlayerHorizontalSwipeKey import it.fast4x.rimusic.utils.disableScrollingTextKey import it.fast4x.rimusic.utils.effectRotationKey import it.fast4x.rimusic.utils.expandedlyricsKey +import it.fast4x.rimusic.utils.expandedplayerKey import it.fast4x.rimusic.utils.expandedplayertoggleKey import it.fast4x.rimusic.utils.fadingedgeKey import it.fast4x.rimusic.utils.iconLikeTypeKey @@ -337,6 +338,7 @@ fun AppearanceSettings( var transparentbar by rememberPreference(transparentbarKey, true) var blackgradient by rememberPreference(blackgradientKey, false) var showlyricsthumbnail by rememberPreference(showlyricsthumbnailKey, false) + var expandedplayer by rememberPreference(expandedplayerKey, false) var playerPlayButtonType by rememberPreference( playerPlayButtonTypeKey, PlayerPlayButtonType.Disabled @@ -1495,7 +1497,7 @@ fun AppearanceSettings( onCheckedChange = { showButtonPlayerMenu = it } ) - if (!showlyricsthumbnail && (expandedplayertoggle || expandedlyrics)) { + if (!showlyricsthumbnail && (expandedplayertoggle || expandedplayer || expandedlyrics)) { SettingsGroupSpacer() SettingsEntryGroupText(title = stringResource(R.string.full_screen_lyrics_components))