From 159a01c00443015a248a81701323b3a13fe72975 Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Fri, 22 Mar 2024 16:46:46 +0100 Subject: [PATCH] Set onclick listener of SimpleLibraryItem to null if no license is known Previously, tapping on a library for which no license is known would pop up a dialog with the license of whatever library was previously bound to the view holder. --- .../com/mikepenz/aboutlibraries/ui/item/SimpleLibraryItem.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aboutlibraries/src/main/java/com/mikepenz/aboutlibraries/ui/item/SimpleLibraryItem.kt b/aboutlibraries/src/main/java/com/mikepenz/aboutlibraries/ui/item/SimpleLibraryItem.kt index 40d020060..7df397bd2 100644 --- a/aboutlibraries/src/main/java/com/mikepenz/aboutlibraries/ui/item/SimpleLibraryItem.kt +++ b/aboutlibraries/src/main/java/com/mikepenz/aboutlibraries/ui/item/SimpleLibraryItem.kt @@ -64,6 +64,8 @@ class SimpleLibraryItem(internal val library: Library, private val libsBuilder: openLicense(ctx, libsBuilder, library) } } + } else { + holder.itemView.setOnClickListener(null) } }