Workaround for SideSheetDialog (#31)

This commit is contained in:
FooIbar authored and GitHub committed 2023-09-27 14:05:21 +00:00
1 parent 7e4b6dbf31
commit 0d6fd8d7ad
1 file changed
+4 -1
@@ -156,7 +156,10 @@ abstract class BaseScene : Fragment() {
}
hideSoftInput()
createDrawerView(savedInstanceState)?.let {
sideSheetDialog = SideSheetDialog(requireContext()).apply {
sideSheetDialog = object : SideSheetDialog(requireContext()) {
// Dirty workaround
override fun cancel() = hide()
}.apply {
window?.decorView?.apply {
val owner = viewLifecycleOwner
setViewTreeLifecycleOwner(owner)