Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pavi38 authored and Okuro3499 committed Feb 3, 2025
1 parent d6aa292 commit 036a896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class AdapterResource(private val context: Context, private var libraryList: Lis

fun setLibraryList(libraryList: List<RealmMyLibrary?>) {
this.libraryList = libraryList
println("Number of resources: ${this.libraryList.size}")
notifyDataSetChanged()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class ResourcesFragment : BaseRecyclerFragment<RealmMyLibrary?>(), OnLibraryItem
override fun getAdapter(): RecyclerView.Adapter<*> {
map = getRatings(mRealm, "resource", model?.id)
val libraryList: List<RealmMyLibrary?> = getList(RealmMyLibrary::class.java).filterIsInstance<RealmMyLibrary?>()
println("number of resources on initation: ${libraryList.size}")
adapterLibrary = AdapterResource(requireActivity(), libraryList, map!!, mRealm)
adapterLibrary.setRatingChangeListener(this)
adapterLibrary.setListener(this)
Expand Down

0 comments on commit 036a896

Please sign in to comment.