Skip to content

Commit

Permalink
[Tizen] Use CoreApplication as native app type
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiejava committed Nov 23, 2021
1 parent 40336f6 commit 3b60dd0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Microsoft.Maui.Handlers
{
public partial class ApplicationHandler : ElementHandler<IApplication, CoreUIApplication>
public partial class ApplicationHandler : ElementHandler<IApplication, CoreApplication>
{
public static void MapTerminate(ApplicationHandler handler, IApplication application, object? args)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Application/ApplicationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#elif WINDOWS
using NativeView = Microsoft.UI.Xaml.Application;
#elif TIZEN
using NativeView = Tizen.Applications.CoreUIApplication;
using NativeView = Tizen.Applications.CoreApplication;
#endif

namespace Microsoft.Maui.Handlers
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Platform/MauiContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using NativeApplication = Android.App.Application;
using NativeWindow = Android.App.Activity;
#elif TIZEN
using NativeApplication = Tizen.Applications.CoreUIApplication;
using NativeApplication = Tizen.Applications.CoreApplication;
using NativeWindow = Microsoft.Maui.CoreUIAppContext;
#else
using NativeApplication = System.Object;
Expand Down
2 changes: 1 addition & 1 deletion src/Core/src/Platform/Tizen/CoreUIAppExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static IWindow GetWindow(this CoreUIApplication application)
throw new InvalidOperationException("Window Not Found");
}

public static void RequestNewWindow(this CoreUIApplication nativeApplication, IApplication application, OpenWindowRequest? args)
public static void RequestNewWindow(this CoreApplication nativeApplication, IApplication application, OpenWindowRequest? args)
{
if (application.Handler?.MauiContext is not IMauiContext applicationContext)
return;
Expand Down

0 comments on commit 3b60dd0

Please sign in to comment.