Skip to content

Commit

Permalink
Set onclick listener of SimpleLibraryItem to null if no license is known
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexbakker committed Mar 22, 2024
1 parent ee138c7 commit 159a01c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class SimpleLibraryItem(internal val library: Library, private val libsBuilder:
openLicense(ctx, libsBuilder, library)
}
}
} else {
holder.itemView.setOnClickListener(null)
}
}

Expand Down

0 comments on commit 159a01c

Please sign in to comment.