Skip to content

Commit

Permalink
Fix about libraries crash
Browse files Browse the repository at this point in the history
This resolves a crash when attempting to open the licenses dialog. Due to an issue with the AboutLibraries plugin, the libraries are currently empty.

See mikepenz/AboutLibraries#839
  • Loading branch information
timusus committed Nov 27, 2023
1 parent 1b84a70 commit 7c762ae
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class LicensesDialogFragment : DialogFragment() {
recyclerView.adapter = adapter

val libraries = Libs.Builder()
.withContext(requireContext())
.build()
.libraries
.sortedBy { library -> library.name }
.withContext(requireContext())
.build()
.libraries
.sortedBy { library -> library.name }

adapter.update(
libraries.map { LibraryBinder(it, listener) }
Expand Down

0 comments on commit 7c762ae

Please sign in to comment.