diff --git a/MauiSample/MainPage.xaml.cs b/MauiSample/MainPage.xaml.cs index d5c444a..de7d0e9 100644 --- a/MauiSample/MainPage.xaml.cs +++ b/MauiSample/MainPage.xaml.cs @@ -1,5 +1,4 @@ -using Android.Widget; -using MauiSample.Presentation.ViewModels; +using MauiSample.Presentation.ViewModels; namespace MauiSample; diff --git a/Tabs/Tabs/DelayedView.cs b/Tabs/Tabs/DelayedView.cs index 3e28b70..b1ad33a 100644 --- a/Tabs/Tabs/DelayedView.cs +++ b/Tabs/Tabs/DelayedView.cs @@ -12,25 +12,10 @@ public override void LoadView() TaskMonitor.Create( async () => { - View? view = null; - //if (DeviceInfo.Platform == DevicePlatform.Android) - //{ - // await Task.Run( - // () => - // { - // view = new TView - // { - // BindingContext = BindingContext, - // }; - // }); - //} - //else + View? view = new TView { - view = new TView - { - BindingContext = BindingContext, - }; - } + BindingContext = BindingContext, + }; await Task.Delay(DelayInMilliseconds);