Skip to content

Commit

Permalink
#53 [MOD] : notification viewHolder glide 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonji-sw committed Aug 23, 2024
1 parent 7a1d967 commit b6b0314
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import androidx.recyclerview.widget.RecyclerView
import com.teamwable.model.notification.NotificationActionModel
import com.teamwable.notification.R
import com.teamwable.notification.databinding.ItemNotificationVpBinding
import com.teamwable.ui.extensions.load
import com.teamwable.ui.extensions.stringOf
import com.teamwable.ui.util.CalculateTime
import timber.log.Timber
Expand All @@ -39,7 +40,7 @@ class NotificationActionViewHolder(
@RequiresApi(Build.VERSION_CODES.O)
fun bind(data: NotificationActionModel?) {
with(binding) {
item = data?: return
item = data ?: return

val spannableText = when (data.notificationTriggerType) {
"contentLiked" -> {
Expand Down Expand Up @@ -109,6 +110,7 @@ class NotificationActionViewHolder(
}
}

ivNotificationVpProfile.load(data.triggerMemberProfileUrl)
tvNotificationVpContent.text = spannableText
tvNotificationVpTime.text = CalculateTime().getCalculateTime(root.context, data.time)
}
Expand Down

0 comments on commit b6b0314

Please sign in to comment.