From ae16fe2dd7d8858364b7108913306055821ac08a Mon Sep 17 00:00:00 2001 From: DaPi Date: Sun, 13 Oct 2024 12:26:48 +0200 Subject: [PATCH] Namespace --- .../Platforms/Android/MainActivity.cs | 7 +++--- .../Platforms/Android/MainApplication.cs | 23 +++++++++---------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/Jugenddienst Stunden/Platforms/Android/MainActivity.cs b/Jugenddienst Stunden/Platforms/Android/MainActivity.cs index 517e9c9..c79b57f 100644 --- a/Jugenddienst Stunden/Platforms/Android/MainActivity.cs +++ b/Jugenddienst Stunden/Platforms/Android/MainActivity.cs @@ -2,8 +2,7 @@ using Android.Content.PM; using Android.OS; -namespace Jugenddienst_Stunden { - [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] - public class MainActivity : MauiAppCompatActivity { - } +namespace Jugenddienst_Stunden; +[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] +public class MainActivity : MauiAppCompatActivity { } diff --git a/Jugenddienst Stunden/Platforms/Android/MainApplication.cs b/Jugenddienst Stunden/Platforms/Android/MainApplication.cs index 48aa33e..10bc566 100644 --- a/Jugenddienst Stunden/Platforms/Android/MainApplication.cs +++ b/Jugenddienst Stunden/Platforms/Android/MainApplication.cs @@ -1,17 +1,16 @@ using Android.App; using Android.Runtime; -namespace Jugenddienst_Stunden { - #if DEBUG - [Application(UsesCleartextTraffic = true)] - #else - [Application] - #endif - public class MainApplication : MauiApplication { - public MainApplication(IntPtr handle, JniHandleOwnership ownership) - : base(handle, ownership) { - } - - protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); +namespace Jugenddienst_Stunden; +#if DEBUG +[Application(UsesCleartextTraffic = true)] +#else +[Application] +#endif +public class MainApplication : MauiApplication { + public MainApplication(nint handle, JniHandleOwnership ownership) + : base(handle, ownership) { } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); }