Skip to content

Commit

Permalink
Delete custom ViewHolder used for kotlinx Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Oct 30, 2023
1 parent fac836b commit 204ef28
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 204ef28

Please sign in to comment.