From 76c91a4084ebc7abbff8fcfe47fa95c45c560a15 Mon Sep 17 00:00:00 2001 From: Sohyun Date: Fri, 11 Oct 2024 14:18:14 +0900 Subject: [PATCH] #94 [FIX] : fix binding error --- .../com/teamwable/profile/profile/BindingProfileFragment.kt | 2 +- .../java/com/teamwable/profile/profile/ProfileMemberFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/feature/profile/src/main/java/com/teamwable/profile/profile/BindingProfileFragment.kt b/feature/profile/src/main/java/com/teamwable/profile/profile/BindingProfileFragment.kt index 35b9f9f4..2839d381 100644 --- a/feature/profile/src/main/java/com/teamwable/profile/profile/BindingProfileFragment.kt +++ b/feature/profile/src/main/java/com/teamwable/profile/profile/BindingProfileFragment.kt @@ -28,7 +28,7 @@ abstract class BindingProfileFragment : Fragment() { container: ViewGroup?, savedInstanceState: Bundle?, ): View? { - _binding = FragmentProfileBinding.inflate(layoutInflater) + _binding = FragmentProfileBinding.inflate(inflater, container, false) return binding.root } diff --git a/feature/profile/src/main/java/com/teamwable/profile/profile/ProfileMemberFragment.kt b/feature/profile/src/main/java/com/teamwable/profile/profile/ProfileMemberFragment.kt index efa883dc..1912dacf 100644 --- a/feature/profile/src/main/java/com/teamwable/profile/profile/ProfileMemberFragment.kt +++ b/feature/profile/src/main/java/com/teamwable/profile/profile/ProfileMemberFragment.kt @@ -28,7 +28,7 @@ class ProfileMemberFragment : BindingProfileFragment() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - userId = arguments?.getLong(Arg.PROFILE_USER_ID) ?: -1L + userId = arguments?.getLong(Arg.PROFILE_USER_ID) ?: return } override fun onViewCreated(view: View, savedInstanceState: Bundle?) {