Skip to content

Commit 0327085

Browse files
committed
fixing android namespace in main page
1 parent c60990f commit 0327085

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

MauiSample/MainPage.xaml.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Android.Widget;
2-
using MauiSample.Presentation.ViewModels;
1+
using MauiSample.Presentation.ViewModels;
32

43
namespace MauiSample;
54

Tabs/Tabs/DelayedView.cs

+3-18
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,10 @@ public override void LoadView()
1212
TaskMonitor.Create(
1313
async () =>
1414
{
15-
View? view = null;
16-
//if (DeviceInfo.Platform == DevicePlatform.Android)
17-
//{
18-
// await Task.Run(
19-
// () =>
20-
// {
21-
// view = new TView
22-
// {
23-
// BindingContext = BindingContext,
24-
// };
25-
// });
26-
//}
27-
//else
15+
View? view = new TView
2816
{
29-
view = new TView
30-
{
31-
BindingContext = BindingContext,
32-
};
33-
}
17+
BindingContext = BindingContext,
18+
};
3419

3520
await Task.Delay(DelayInMilliseconds);
3621

0 commit comments

Comments
 (0)