diff --git a/app/tv/src/main/java/dev/jdtech/jellyfin/ui/SettingsSubScreen.kt b/app/tv/src/main/java/dev/jdtech/jellyfin/ui/SettingsSubScreen.kt index 7babba3374..4d0b12bc78 100644 --- a/app/tv/src/main/java/dev/jdtech/jellyfin/ui/SettingsSubScreen.kt +++ b/app/tv/src/main/java/dev/jdtech/jellyfin/ui/SettingsSubScreen.kt @@ -238,7 +238,7 @@ private fun SettingsSubScreenLayout( val newPreference = it.copy(value = value) onUpdate(newPreference) focusedPreference = newPreference - } + }, ) } } diff --git a/app/tv/src/main/java/dev/jdtech/jellyfin/ui/components/SettingsCategoryLabel.kt b/app/tv/src/main/java/dev/jdtech/jellyfin/ui/components/SettingsCategoryLabel.kt index 09c1174727..0b58d44e74 100644 --- a/app/tv/src/main/java/dev/jdtech/jellyfin/ui/components/SettingsCategoryLabel.kt +++ b/app/tv/src/main/java/dev/jdtech/jellyfin/ui/components/SettingsCategoryLabel.kt @@ -19,7 +19,7 @@ fun SettingsCategoryLabel( Text( text = stringResource(id = preference.nameStringResource), style = MaterialTheme.typography.titleSmall, - modifier = modifier.fillMaxWidth() + modifier = modifier.fillMaxWidth(), ) } @@ -28,7 +28,7 @@ fun SettingsCategoryLabel( private fun SettingsLabelPreview() { FindroidTheme { SettingsCategoryLabel( - preference = PreferenceCategoryLabel(nameStringResource = CoreR.string.mpv_player) + preference = PreferenceCategoryLabel(nameStringResource = CoreR.string.mpv_player), ) } } diff --git a/app/tv/src/main/java/dev/jdtech/jellyfin/ui/components/SettingsDetailsLongCard.kt b/app/tv/src/main/java/dev/jdtech/jellyfin/ui/components/SettingsDetailsLongCard.kt index 7d32c958a2..5f7bd24ad0 100644 --- a/app/tv/src/main/java/dev/jdtech/jellyfin/ui/components/SettingsDetailsLongCard.kt +++ b/app/tv/src/main/java/dev/jdtech/jellyfin/ui/components/SettingsDetailsLongCard.kt @@ -46,7 +46,7 @@ fun SettingsDetailsLongCard( ) { Text( text = stringResource(id = preference.nameStringResource), - style = MaterialTheme.typography.headlineMedium + style = MaterialTheme.typography.headlineMedium, ) preference.descriptionStringRes?.let { Spacer(modifier = Modifier.height(MaterialTheme.spacings.small)) @@ -64,7 +64,7 @@ fun SettingsDetailsLongCard( } }, singleLine = true, - modifier = Modifier.fillMaxWidth() + modifier = Modifier.fillMaxWidth(), ) Spacer(modifier = Modifier.height(MaterialTheme.spacings.medium)) Box { @@ -85,7 +85,6 @@ fun SettingsDetailsLongCard( } } } - } } } diff --git a/core/src/main/java/dev/jdtech/jellyfin/viewmodels/SettingsViewModel.kt b/core/src/main/java/dev/jdtech/jellyfin/viewmodels/SettingsViewModel.kt index 6553760624..e6044cbfe4 100644 --- a/core/src/main/java/dev/jdtech/jellyfin/viewmodels/SettingsViewModel.kt +++ b/core/src/main/java/dev/jdtech/jellyfin/viewmodels/SettingsViewModel.kt @@ -211,8 +211,8 @@ constructor( enabled = preference.dependencies.all { getBoolean(it, false) }, value = getString( preference.backendName, - preference.backendDefaultValue.toString() - )!!.toLongOrNull() ?: preference.backendDefaultValue + preference.backendDefaultValue.toString(), + )!!.toLongOrNull() ?: preference.backendDefaultValue, ) } else -> preference