diff --git a/app/src/main/java/com/bobbyesp/metadator/presentation/pages/utilities/tageditor/ID3MetadataEditorPageViewModel.kt b/app/src/main/java/com/bobbyesp/metadator/presentation/pages/utilities/tageditor/ID3MetadataEditorPageViewModel.kt index 7ac3901..0415c8e 100644 --- a/app/src/main/java/com/bobbyesp/metadator/presentation/pages/utilities/tageditor/ID3MetadataEditorPageViewModel.kt +++ b/app/src/main/java/com/bobbyesp/metadator/presentation/pages/utilities/tageditor/ID3MetadataEditorPageViewModel.kt @@ -42,13 +42,13 @@ class ID3MetadataEditorPageViewModel @Inject constructor( val fd = songFd.dup()?.detachFd() ?: throw IOException("File descriptor is null") val metadata = TagLib.getMetadata( fd, - readStyle = AudioPropertiesReadStyle.Fast, - withLyrics = true + readStyle = AudioPropertiesReadStyle.Fast ) if (metadata == null) { updateState(ID3MetadataEditorPageState.Error(Exception("Metadata is null"))) return } + val lyrics = metadata.propertyMap["LYRICS"]?.get(0) ?: "" updateLyrics(lyrics) diff --git a/app/ui/src/main/java/com/bobbyesp/ui/components/text/PreConfiguredOutlinedTextField.kt b/app/ui/src/main/java/com/bobbyesp/ui/components/text/PreConfiguredOutlinedTextField.kt index 95cc31e..2bcf29c 100644 --- a/app/ui/src/main/java/com/bobbyesp/ui/components/text/PreConfiguredOutlinedTextField.kt +++ b/app/ui/src/main/java/com/bobbyesp/ui/components/text/PreConfiguredOutlinedTextField.kt @@ -38,7 +38,7 @@ fun PreConfiguredOutlinedTextField( val (text, setText) = remember(value) { mutableStateOf(value) } SideEffect { - if (!text.isNullOrEmpty()) returnModifiedValue(text) + if (!text.isNullOrEmpty()) returnModifiedValue(text) else returnModifiedValue("") } OutlinedTextField( diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3ccdc1e..ea39e2e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -77,7 +77,7 @@ googleServices = "4.4.1" firebaseBom = "32.8.0" #Others -taglib = "84a30a6c70" +taglib = "1.0.0-alpha07" #Tests junit = "4.13.2"