Skip to content

Commit

Permalink
feat/#9: companion object로 상수 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed May 9, 2024
1 parent 9f920a0 commit acc6952
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/main/java/com/sopt/now/test/friend/FriendAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import com.sopt.now.test.data.Profile

class FriendAdapter(private val profiles: List<Profile>) : RecyclerView.Adapter<BaseViewHolder>() {

// 첫 번째 아이템
private val FIRST_ITEM_POSITION = 0

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder {
return when (viewType) {
TYPE_USER -> {
Expand Down Expand Up @@ -50,5 +47,6 @@ class FriendAdapter(private val profiles: List<Profile>) : RecyclerView.Adapter<
companion object {
const val TYPE_USER = 0
const val TYPE_FRIEND = 1
const val FIRST_ITEM_POSITION = 0
}
}

0 comments on commit acc6952

Please sign in to comment.