From 3b60dd084ee32908461dae3142b147239e9bbd42 Mon Sep 17 00:00:00 2001 From: Kangho Hur Date: Mon, 22 Nov 2021 18:54:57 +0900 Subject: [PATCH] [Tizen] Use CoreApplication as native app type --- src/Core/src/Handlers/Application/ApplicationHandler.Tizen.cs | 2 +- src/Core/src/Handlers/Application/ApplicationHandler.cs | 2 +- src/Core/src/Platform/MauiContextExtensions.cs | 2 +- src/Core/src/Platform/Tizen/CoreUIAppExtensions.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Core/src/Handlers/Application/ApplicationHandler.Tizen.cs b/src/Core/src/Handlers/Application/ApplicationHandler.Tizen.cs index 1ced0f6d39bc..db4e20c1aeb0 100644 --- a/src/Core/src/Handlers/Application/ApplicationHandler.Tizen.cs +++ b/src/Core/src/Handlers/Application/ApplicationHandler.Tizen.cs @@ -2,7 +2,7 @@ namespace Microsoft.Maui.Handlers { - public partial class ApplicationHandler : ElementHandler + public partial class ApplicationHandler : ElementHandler { public static void MapTerminate(ApplicationHandler handler, IApplication application, object? args) { diff --git a/src/Core/src/Handlers/Application/ApplicationHandler.cs b/src/Core/src/Handlers/Application/ApplicationHandler.cs index b31a421ed1c6..832f55e33eb0 100644 --- a/src/Core/src/Handlers/Application/ApplicationHandler.cs +++ b/src/Core/src/Handlers/Application/ApplicationHandler.cs @@ -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 diff --git a/src/Core/src/Platform/MauiContextExtensions.cs b/src/Core/src/Platform/MauiContextExtensions.cs index 61dab82b043b..a10167735211 100644 --- a/src/Core/src/Platform/MauiContextExtensions.cs +++ b/src/Core/src/Platform/MauiContextExtensions.cs @@ -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; diff --git a/src/Core/src/Platform/Tizen/CoreUIAppExtensions.cs b/src/Core/src/Platform/Tizen/CoreUIAppExtensions.cs index 03ba6c1f5215..345bb33a02e3 100644 --- a/src/Core/src/Platform/Tizen/CoreUIAppExtensions.cs +++ b/src/Core/src/Platform/Tizen/CoreUIAppExtensions.cs @@ -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;