Skip to content

Commit

Permalink
#103 [FIX] : fix initialized error
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyun127 committed Nov 9, 2024
1 parent 88505cc commit 803fc80
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ abstract class BindingProfileFragment : Fragment() {

override fun onDestroyView() {
super.onDestroyView()
binding.appbarProfileInfo.removeOnOffsetChangedListener(offsetChangedListener)
if (this::offsetChangedListener.isInitialized)
binding.appbarProfileInfo.removeOnOffsetChangedListener(offsetChangedListener)
_binding = null
}

Expand Down

0 comments on commit 803fc80

Please sign in to comment.