Skip to content

Commit

Permalink
[fix/#104] Base 추상 클래스 바인딩 해제 중복 코드
Browse files Browse the repository at this point in the history
  • Loading branch information
minju1459 committed Aug 21, 2024
1 parent 21958ac commit a6bfdd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ abstract class BindingBottomSheetDialog<B : ViewBinding>(
private val bindingInflater: (LayoutInflater, ViewGroup?, Boolean) -> B,
) : BottomSheetDialogFragment() {

var _binding: B? = null
private var _binding: B? = null
protected val binding: B
get() = requireNotNull(_binding) { "binding object is not initialized" }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,4 @@ class SelectSeatDialog : BindingBottomSheetDialog<FragmentSelectSeatBottomSheetB
).show()
}
}
override fun onDestroyView() {
super.onDestroyView()
_binding = null
}
}

0 comments on commit a6bfdd6

Please sign in to comment.