Skip to content

Commit

Permalink
refactor: #21 - Adapter(Like, Search) 패키지 및 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jhg3410 committed Mar 5, 2023
1 parent a5a88b8 commit bf3d3b3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.inu.events.ui.adapter.like
package org.inu.events.ui.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.inu.events.ui.adapter.like
package org.inu.events.ui.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
Expand All @@ -8,7 +8,7 @@ import androidx.recyclerview.widget.RecyclerView
import org.inu.events.data.model.entity.Event
import org.inu.events.databinding.ItemLikeEventBinding

class LikePagingAdapter : PagingDataAdapter<Event, LikePagingAdapter.ViewHolder>(LikeDiffUtil) {
class SearchPagingAdapter : PagingDataAdapter<Event, SearchPagingAdapter.ViewHolder>(LikeDiffUtil) {

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = ViewHolder.from(parent)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import androidx.recyclerview.widget.RecyclerView
import org.inu.events.data.model.entity.Event
import org.inu.events.data.model.entity.User
import org.inu.events.ui.adapter.*
import org.inu.events.ui.adapter.like.LikeAdapter
import org.inu.events.ui.adapter.LikeAdapter

@BindingAdapter("app:likes")
fun setLikes(recyclerView: RecyclerView, list: List<Event>?) {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/org/inu/events/ui/home/SearchActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import androidx.lifecycle.repeatOnLifecycle
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.launch
import org.inu.events.databinding.ActivitySearchBinding
import org.inu.events.ui.adapter.like.LikePagingAdapter
import org.inu.events.ui.adapter.SearchPagingAdapter

class SearchActivity : AppCompatActivity() {

private val vm: SearchViewModel by viewModels()
private lateinit var binding: ActivitySearchBinding
private val adapter = LikePagingAdapter()
private val adapter = SearchPagingAdapter()

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.inu.events.ui.mypage.store

import androidx.activity.viewModels
import org.inu.events.R
import org.inu.events.ui.adapter.like.LikeAdapter
import org.inu.events.ui.adapter.LikeAdapter
import org.inu.events.base.BaseActivity
import org.inu.events.databinding.ActivityLikeBinding

Expand Down

0 comments on commit bf3d3b3

Please sign in to comment.