Skip to content

Commit

Permalink
fixing android namespace in main page
Browse files Browse the repository at this point in the history
  • Loading branch information
roubachof committed Oct 18, 2024
1 parent c60990f commit 0327085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
3 changes: 1 addition & 2 deletions MauiSample/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Android.Widget;
using MauiSample.Presentation.ViewModels;
using MauiSample.Presentation.ViewModels;

namespace MauiSample;

Expand Down
21 changes: 3 additions & 18 deletions Tabs/Tabs/DelayedView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 15 in Tabs/Tabs/DelayedView.cs

View workflow job for this annotation

GitHub Actions / winBuild

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 15 in Tabs/Tabs/DelayedView.cs

View workflow job for this annotation

GitHub Actions / winBuild

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 15 in Tabs/Tabs/DelayedView.cs

View workflow job for this annotation

GitHub Actions / winBuild

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 15 in Tabs/Tabs/DelayedView.cs

View workflow job for this annotation

GitHub Actions / winBuild

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
view = new TView
{
BindingContext = BindingContext,
};
}
BindingContext = BindingContext,
};

await Task.Delay(DelayInMilliseconds);

Expand Down

0 comments on commit 0327085

Please sign in to comment.