mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Library should not be clickable if spdx is blank
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stypox
					Stypox