Last active
March 16, 2022 15:43
-
-
Save akitikkx/b3ff0e8f17ec3d1ca3680a3e6208b2bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onCreateView(...): View { | |
... | |
binding.composeContainer.apply { | |
// Dispose of the Composition when the view's | |
// LifecycleOwner is destroyed | |
// https://developer.android.com/jetpack/compose/interop/interop-apis | |
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed) | |
setContent { | |
MdcTheme { | |
ShowDetailScreen( | |
onSeasonsClick = { | |
viewModel.onSeasonsClick() | |
} | |
) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment