Skip to content

Commit

Permalink
fix timeline node icon
Browse files Browse the repository at this point in the history
  • Loading branch information
yudanhezhongweijie committed Apr 18, 2021
1 parent 2278901 commit 1bb1bd4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ class CommunityNodeAdapter(val forumClickListener: ForumClickListener, val timel
override fun convert(helper: BaseViewHolder, item: BaseNode) {
val timeline = (item as TimelineNode).timeline
helper.setText(R.id.forumName, timeline.name)
helper.setVisible(R.id.forumIcon, false)
val resourceId: Int = context.resources.getIdentifier("bi_1", "drawable", context.packageName)
helper.setImageResource(R.id.forumIcon, resourceId)
}

override fun onClick(helper: BaseViewHolder, view: View, data: BaseNode, position: Int) {
Expand Down

0 comments on commit 1bb1bd4

Please sign in to comment.