Skip to content

Commit

Permalink
Fix droid sample
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Apr 3, 2024
1 parent e583137 commit 290059e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sample/Sample/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ public static MauiApp CreateMauiApp()
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
})
.ConfigureLifecycleEvents(events =>
{
#if ANDROID
events.AddAndroid(android => android.OnApplicationCreate(app => UserDialogs.Init(app)));
#endif
});

#if ANDROID
UserDialogs.Init(() => Platform.CurrentActivity);
#endif
return builder.Build();
}
}

0 comments on commit 290059e

Please sign in to comment.