Namespace

This commit is contained in:
2024-10-13 12:26:48 +02:00
parent ebd5ab741c
commit ae16fe2dd7
2 changed files with 14 additions and 16 deletions

View File

@@ -2,8 +2,7 @@
using Android.Content.PM; using Android.Content.PM;
using Android.OS; using Android.OS;
namespace Jugenddienst_Stunden { 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)] [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 { public class MainActivity : MauiAppCompatActivity {
}
} }

View File

@@ -1,17 +1,16 @@
using Android.App; using Android.App;
using Android.Runtime; using Android.Runtime;
namespace Jugenddienst_Stunden { namespace Jugenddienst_Stunden;
#if DEBUG #if DEBUG
[Application(UsesCleartextTraffic = true)] [Application(UsesCleartextTraffic = true)]
#else #else
[Application] [Application]
#endif #endif
public class MainApplication : MauiApplication { public class MainApplication : MauiApplication {
public MainApplication(IntPtr handle, JniHandleOwnership ownership) public MainApplication(nint handle, JniHandleOwnership ownership)
: base(handle, ownership) { : base(handle, ownership) {
}
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
} }
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
} }