Skip to content

Commit 72f054a

Browse files
committed
Library should not be clickable if spdx is blank
1 parent a25034b commit 72f054a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/src/main/java/org/schabi/newpipe/ui/components/about

app/src/main/java/org/schabi/newpipe/ui/components/about/Library.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fun Library(
4141
showLicenseDialog: (licenseFilename: String) -> Unit,
4242
descriptionMaxLines: Int,
4343
) {
44-
val spdxLicense = library.licenses.firstOrNull()?.spdxId
44+
val spdxLicense = library.licenses.firstOrNull()?.spdxId?.takeIf { it.isNotBlank() }
4545
val licenseAssetPath = spdxLicense?.let { SPDX_ID_TO_ASSET_PATH[it] }
4646
val context = LocalContext.current
4747

0 commit comments

Comments
 (0)