From 51bf245f0012825fdd84d3cd14d1e34283e84a4d Mon Sep 17 00:00:00 2001 From: raphael Date: Wed, 29 Dec 2021 23:38:35 +0100 Subject: [PATCH] fixes early call to context in first fragment --- app/src/main/java/com/example/bump/ui/FirstFragment.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/example/bump/ui/FirstFragment.kt b/app/src/main/java/com/example/bump/ui/FirstFragment.kt index 6dfa1cc..fda774d 100644 --- a/app/src/main/java/com/example/bump/ui/FirstFragment.kt +++ b/app/src/main/java/com/example/bump/ui/FirstFragment.kt @@ -30,14 +30,15 @@ class FirstFragment : Fragment() { private lateinit var rest: RestSingleton private lateinit var log: JSONArray - private val bump = BumpProcessor(requireContext()) - + private lateinit var bump: BumpProcessor override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? - ): View? { + ): View { _binding = FragmentFirstBinding.inflate(inflater, container, false) + bump = BumpProcessor(requireContext()) + // TODO: Step 1.7 call create channel createChannel(