Change fullscreen state as soon as possible in splash

This commit is contained in:
Kirill Kamakin
2021-11-23 22:16:05 +03:00
parent cf9bd407a4
commit 20cb747b2a

View File

@@ -32,18 +32,13 @@ class SplashFragment : Fragment() {
): View {
Timber.v("onCreateView() called with: inflater = $inflater, container = $container, savedInstanceState = $savedInstanceState")
val binding = FragmentSplashBinding.inflate(inflater, container, false)
changeFullscreenState(true)
return binding.root
}
override fun onResume() {
super.onResume()
Timber.v("onResume() called")
changeFullscreenState(true)
}
override fun onPause() {
super.onPause()
Timber.v("onPause() called")
override fun onDestroyView() {
super.onDestroyView()
Timber.v("onDestroyView() called")
changeFullscreenState(false)
}