For #27101: set dialog to be dismissed when touched outside

This commit is contained in:
MatthewTighe 2022-09-22 16:02:01 -07:00 committed by mergify[bot]
parent 538fd700bd
commit 5e282ae326
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class WallpaperOnboardingDialogFragment : BottomSheetDialogFragment() {
container: ViewGroup?,
savedInstanceState: Bundle?,
): View = ComposeView(requireContext()).apply {
this@WallpaperOnboardingDialogFragment.dialog?.setCanceledOnTouchOutside(true)
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
setContent {