Skip to content

Commit

Permalink
style: ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1318 committed Dec 13, 2023
1 parent cf33e44 commit a5d8226
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package boostcamp.and07.mindsync.ui.RecycleBin
package boostcamp.and07.mindsync.ui.recyclebin

import android.view.LayoutInflater
import android.view.ViewGroup
Expand All @@ -7,7 +7,6 @@ import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import boostcamp.and07.mindsync.data.model.Board
import boostcamp.and07.mindsync.databinding.ItemRecycleBoardBinding
import boostcamp.and07.mindsync.ui.recyclebin.RecycleBinClickListener

class RecycleBinAdapter :
ListAdapter<Board, RecycleBinAdapter.RecycleBinViewHolder>(DIFF_CALLBACK) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package boostcamp.and07.mindsync.ui.recyclebin
import androidx.databinding.BindingAdapter
import androidx.recyclerview.widget.RecyclerView
import boostcamp.and07.mindsync.data.model.Board
import boostcamp.and07.mindsync.ui.RecycleBin.RecycleBinAdapter

@BindingAdapter("app:restoreBoards")
fun RecyclerView.bindRestoreBoards(boards:List<Board>){
if(this.adapter!=null){
fun RecyclerView.bindRestoreBoards(boards: List<Board>) {
if (this.adapter != null) {
(this.adapter as RecycleBinAdapter).submitList(boards.toMutableList())
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import boostcamp.and07.mindsync.data.model.Board

interface RecycleBinClickListener {
fun onCheckBoxClick(board: Board)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import androidx.navigation.fragment.navArgs
import boostcamp.and07.mindsync.R
import boostcamp.and07.mindsync.data.model.Board
import boostcamp.and07.mindsync.databinding.FragmentRecycleBinBinding
import boostcamp.and07.mindsync.ui.RecycleBin.RecycleBinAdapter
import boostcamp.and07.mindsync.ui.base.BaseFragment
import dagger.hilt.android.AndroidEntryPoint

Expand All @@ -25,7 +24,7 @@ class RecycleBinFragment : BaseFragment<FragmentRecycleBinBinding>(R.layout.frag
binding.vm = recycleBinViewModel
binding.rvRecyclebinBoard.adapter = recycleBinAdapter
recycleBinAdapter.setRecycleBinClickListener(
object :RecycleBinClickListener {
object : RecycleBinClickListener {
override fun onCheckBoxClick(board: Board) {
recycleBinViewModel.selectBoard(board)
}
Expand Down

0 comments on commit a5d8226

Please sign in to comment.