From 1eaafb19984b298b8d4e4f51de29c675be3b0867 Mon Sep 17 00:00:00 2001 From: Dan Kyungu <33684517+DanKyungu@users.noreply.github.com> Date: Wed, 31 Aug 2022 21:40:23 +0200 Subject: [PATCH] Fix Java.Lang.IllegalArgumentException: 'The view is not a child of CoordinatorLayout, Issue #1 --- src/OverSheet/Platforms/Android/OverSheetExtensions.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/OverSheet/Platforms/Android/OverSheetExtensions.cs b/src/OverSheet/Platforms/Android/OverSheetExtensions.cs index e33b95a..c6a1402 100644 --- a/src/OverSheet/Platforms/Android/OverSheetExtensions.cs +++ b/src/OverSheet/Platforms/Android/OverSheetExtensions.cs @@ -22,14 +22,11 @@ public static void ShowBottomSheet(this Page page, IView content, float cornerRa var viewToShow = content.ToPlatform(mauiContext); - SetCornerRadius(context, cornerRadius); UpdateBackgroundColor(context,viewToShow); - BottomSheetBehavior.From(viewToShow); - BottomSheetDialog.SetContentView(viewToShow); - //BottomSheetDialog.Show(); + BottomSheetDialog.Show(); }