From 72f054a4fa4f8575fc7fa516fda2d13425d05a28 Mon Sep 17 00:00:00 2001 From: Stypox Date: Wed, 27 Nov 2024 15:46:39 +0100 Subject: [PATCH] Library should not be clickable if spdx is blank --- .../main/java/org/schabi/newpipe/ui/components/about/Library.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/about/Library.kt b/app/src/main/java/org/schabi/newpipe/ui/components/about/Library.kt index 51ab60d12..97a2be949 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/about/Library.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/about/Library.kt @@ -41,7 +41,7 @@ fun Library( showLicenseDialog: (licenseFilename: String) -> Unit, descriptionMaxLines: Int, ) { - val spdxLicense = library.licenses.firstOrNull()?.spdxId + val spdxLicense = library.licenses.firstOrNull()?.spdxId?.takeIf { it.isNotBlank() } val licenseAssetPath = spdxLicense?.let { SPDX_ID_TO_ASSET_PATH[it] } val context = LocalContext.current