Skip to content

Commit

Permalink
Merge pull request #100 from Infomaniak/Remove-Custom-ViewHolder
Browse files Browse the repository at this point in the history
Delete custom ViewHolder used for kotlinx Extension
  • Loading branch information
KevinBoulongne authored Oct 31, 2023
2 parents 47af0ee + 6acaecb commit dd724af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 31 deletions.
11 changes: 3 additions & 8 deletions src/main/java/com/infomaniak/lib/core/views/LoaderAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
*/
package com.infomaniak.lib.core.views

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.infomaniak.lib.core.R
import androidx.recyclerview.widget.RecyclerView.Adapter
import androidx.recyclerview.widget.RecyclerView.ViewHolder

abstract class LoaderAdapter<T> : RecyclerView.Adapter<ViewHolder>() {
abstract class LoaderAdapter<T> : Adapter<ViewHolder>() {

private var showLoading = false
val itemList: ArrayList<T> = ArrayList()
Expand Down Expand Up @@ -66,9 +65,5 @@ abstract class LoaderAdapter<T> : RecyclerView.Adapter<ViewHolder>() {

const val VIEW_TYPE_LOADING = 1
const val VIEW_TYPE_NORMAL = 2

fun createLoadingViewHolder(parent: ViewGroup): ViewHolder {
return ViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.item_loading, parent, false))
}
}
}
23 changes: 0 additions & 23 deletions src/main/java/com/infomaniak/lib/core/views/ViewHolder.kt

This file was deleted.

0 comments on commit dd724af

Please sign in to comment.