Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Okuro3499 committed Feb 27, 2025
1 parent 2a90f68 commit cb164ae
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.ole.planet.myplanet.ui.resources

import android.content.Context
import android.text.TextUtils
import android.util.Log
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
Expand Down Expand Up @@ -87,7 +88,10 @@ class AdapterResource(private val context: Context, private var libraryList: Lis
}
holder.rowLibraryBinding.tvDate.text = libraryList[position]?.createdDate?.let { formatDate(it, "MMM dd, yyyy") }
displayTagCloud(holder.rowLibraryBinding.flexboxDrawable, position)
holder.itemView.setOnClickListener { openLibrary(libraryList[position]) }
holder.itemView.setOnClickListener {
Log.d("okuro", "AdapterResource onBindViewHolder: ${libraryList[position]?.id}")
openLibrary(libraryList[position])
}
userModel = UserProfileDbHandler(context).userModel
if (libraryList[position]?.isResourceOffline() == true) {
holder.rowLibraryBinding.ivDownloaded.visibility = View.INVISIBLE
Expand Down

0 comments on commit cb164ae

Please sign in to comment.