This commit is contained in:
Amine 2017-11-21 19:05:14 +01:00
parent ebf4d294a8
commit 1f67f2fdee
3 changed files with 8 additions and 9 deletions

View File

@ -1,3 +1,7 @@
**1.5.4.15**
- Fixed an issue with the sources list.
**1.5.4.14** **1.5.4.14**
- Fixing infinite scroll trying to load more items when there are no more. - Fixing infinite scroll trying to load more items when there are no more.

View File

@ -46,21 +46,17 @@ class SourcesListAdapter(private val app: Activity,
.builder() .builder()
.round() .round()
.build(itm.title.toTextDrawableString(), color) .build(itm.title.toTextDrawableString(), color)
holder.itemImage.setImageDrawable(drawable) holder.mView.itemImage.setImageDrawable(drawable)
} else { } else {
c.circularBitmapDrawable(itm.getIcon(c), holder.itemImage) c.circularBitmapDrawable(itm.getIcon(c), holder.mView.itemImage)
} }
holder.sourceTitle.text = itm.title holder.mView.sourceTitle.text = itm.title
} }
override fun getItemCount(): Int { override fun getItemCount(): Int = items.size
return items.size
}
inner class ViewHolder(internal val mView: ConstraintLayout) : RecyclerView.ViewHolder(mView) { inner class ViewHolder(internal val mView: ConstraintLayout) : RecyclerView.ViewHolder(mView) {
lateinit var itemImage: ImageView
lateinit var sourceTitle: TextView
init { init {
handleClickListeners() handleClickListeners()

View File

@ -35,7 +35,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end|bottom|right" android:layout_gravity="end|bottom|right"
android:src="@drawable/ic_add" android:src="@drawable/ic_add"
android:tint="?android:textColorPrimary"
android:paddingBottom="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingTop="@dimen/activity_vertical_margin" android:paddingTop="@dimen/activity_vertical_margin"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"