Skip to content

Commit

Permalink
#26 Fix: 어뎁터 해제 재설정
Browse files Browse the repository at this point in the history
  • Loading branch information
0se0 committed Jun 6, 2024
1 parent 5252ae3 commit 151a121
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/src/main/java/com/sopt/now/ui/follower/FollowerFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ class FollowerFragment : Fragment() {
private lateinit var followerAdapter: FollowerAdapter

override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?,
): View {
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
_binding = FragmentFollowerBinding.inflate(inflater, container, false)
return binding.root
return _binding?.root
}


override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)

Expand All @@ -47,7 +45,7 @@ class FollowerFragment : Fragment() {

override fun onDestroyView() {
super.onDestroyView()
_binding?.rvFollower?.adapter = null
_binding = null
binding.rvFollower.adapter = null
}
}

0 comments on commit 151a121

Please sign in to comment.