Upgrade FastAdapter to v5.3.4
This commit is contained in:
parent
b83686e760
commit
ba3c332c63
10 changed files with 11 additions and 11 deletions
|
@ -38,7 +38,7 @@ dependencies {
|
|||
implementation 'com.mikepenz:materialdrawer:7.0.0'
|
||||
implementation 'com.mikepenz:fontawesome-typeface:5.9.0.0-kotlin@aar'
|
||||
implementation 'com.github.ByteHamster:SearchPreference:v2.0.0'
|
||||
implementation 'com.mikepenz:fastadapter:4.1.2'
|
||||
implementation 'com.mikepenz:fastadapter:5.3.4'
|
||||
implementation 'de.hdodenhof:circleimageview:3.1.0'
|
||||
|
||||
implementation "commons-io:commons-io:${versions.commonsIo}"
|
||||
|
|
|
@ -19,7 +19,7 @@ class FolderListItem(
|
|||
|
||||
override fun getViewHolder(v: View) = FolderListViewHolder(v)
|
||||
|
||||
override fun bindView(holder: FolderListViewHolder, payloads: MutableList<Any>) {
|
||||
override fun bindView(holder: FolderListViewHolder, payloads: List<Any>) {
|
||||
super.bindView(holder, payloads)
|
||||
holder.icon.setImageResource(folderIconResource)
|
||||
holder.name.text = displayName
|
||||
|
|
|
@ -18,7 +18,7 @@ class FolderListItem(
|
|||
|
||||
override fun getViewHolder(v: View) = FolderListViewHolder(v)
|
||||
|
||||
override fun bindView(holder: FolderListViewHolder, payloads: MutableList<Any>) {
|
||||
override fun bindView(holder: FolderListViewHolder, payloads: List<Any>) {
|
||||
super.bindView(holder, payloads)
|
||||
holder.icon.setImageResource(folderIconResource)
|
||||
holder.name.text = displayName
|
||||
|
|
|
@ -20,7 +20,7 @@ internal class AccountItem(val account: Account) : AbstractItem<AccountItem.View
|
|||
val name: TextView = view.findViewById(R.id.name)
|
||||
val email: TextView = view.findViewById(R.id.email)
|
||||
|
||||
override fun bindView(item: AccountItem, payloads: MutableList<Any>) {
|
||||
override fun bindView(item: AccountItem, payloads: List<Any>) {
|
||||
name.text = item.account.description
|
||||
email.text = item.account.email
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ internal class SettingsActionItem(
|
|||
val text: TextView = view.findViewById(R.id.text)
|
||||
val icon: ImageView = view.findViewById(R.id.icon)
|
||||
|
||||
override fun bindView(item: SettingsActionItem, payloads: MutableList<Any>) {
|
||||
override fun bindView(item: SettingsActionItem, payloads: List<Any>) {
|
||||
text.text = item.text
|
||||
|
||||
val outValue = TypedValue()
|
||||
|
|
|
@ -19,7 +19,7 @@ internal class SettingsDividerItem(
|
|||
class ViewHolder(view: View) : FastAdapter.ViewHolder<SettingsDividerItem>(view) {
|
||||
val text: TextView = view.findViewById(R.id.text)
|
||||
|
||||
override fun bindView(item: SettingsDividerItem, payloads: MutableList<Any>) {
|
||||
override fun bindView(item: SettingsDividerItem, payloads: List<Any>) {
|
||||
text.text = item.text
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ internal class UrlActionItem(
|
|||
val text: TextView = view.findViewById(R.id.text)
|
||||
val icon: ImageView = view.findViewById(R.id.icon)
|
||||
|
||||
override fun bindView(item: UrlActionItem, payloads: MutableList<Any>) {
|
||||
override fun bindView(item: UrlActionItem, payloads: List<Any>) {
|
||||
text.text = item.text
|
||||
|
||||
val outValue = TypedValue()
|
||||
|
|
|
@ -12,7 +12,7 @@ import kotlinx.android.extensions.LayoutContainer
|
|||
abstract class CheckBoxItem(override var identifier: Long) : AbstractItem<CheckBoxViewHolder>() {
|
||||
override fun getViewHolder(v: View): CheckBoxViewHolder = CheckBoxViewHolder(v)
|
||||
|
||||
override fun bindView(holder: CheckBoxViewHolder, payloads: MutableList<Any>) {
|
||||
override fun bindView(holder: CheckBoxViewHolder, payloads: List<Any>) {
|
||||
super.bindView(holder, payloads)
|
||||
holder.checkBox.isChecked = isSelected
|
||||
holder.itemView.isEnabled = isEnabled
|
||||
|
|
|
@ -18,7 +18,7 @@ class AccountItem(account: SettingsListItem.Account) : CheckBoxItem(account.acco
|
|||
override val type = R.id.settings_export_list_account_item
|
||||
override val layoutRes = R.layout.settings_export_account_list_item
|
||||
|
||||
override fun bindView(viewHolder: CheckBoxViewHolder, payloads: MutableList<Any>) {
|
||||
override fun bindView(viewHolder: CheckBoxViewHolder, payloads: List<Any>) {
|
||||
super.bindView(viewHolder, payloads)
|
||||
viewHolder.accountDisplayName.text = displayName
|
||||
viewHolder.accountEmail.text = email
|
||||
|
|
|
@ -22,7 +22,7 @@ abstract class ImportListItem(override var identifier: Long, private val importS
|
|||
return ImportCheckBoxViewHolder(v)
|
||||
}
|
||||
|
||||
override fun bindView(holder: ImportCheckBoxViewHolder, payloads: MutableList<Any>) {
|
||||
override fun bindView(holder: ImportCheckBoxViewHolder, payloads: List<Any>) {
|
||||
super.bindView(holder, payloads)
|
||||
holder.checkBox.isChecked = isSelected
|
||||
holder.itemView.isEnabled = isEnabled
|
||||
|
@ -90,7 +90,7 @@ class AccountItem(account: SettingsListItem.Account) :
|
|||
override val type = R.id.settings_import_list_account_item
|
||||
override val layoutRes = R.layout.settings_import_account_list_item
|
||||
|
||||
override fun bindView(holder: ImportCheckBoxViewHolder, payloads: MutableList<Any>) {
|
||||
override fun bindView(holder: ImportCheckBoxViewHolder, payloads: List<Any>) {
|
||||
super.bindView(holder, payloads)
|
||||
holder.accountDisplayName.text = displayName
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue