diff --git a/GameAtlas/GameAtlas/Platforms/Android/MainActivity.cs b/GameAtlas/GameAtlas/Platforms/Android/MainActivity.cs index 0aad8f2..75ff593 100644 --- a/GameAtlas/GameAtlas/Platforms/Android/MainActivity.cs +++ b/GameAtlas/GameAtlas/Platforms/Android/MainActivity.cs @@ -7,4 +7,9 @@ namespace GameAtlas; [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] public class MainActivity : MauiAppCompatActivity { + protected override void OnCreate(Bundle savedInstanceState) + { + base.OnCreate(savedInstanceState); + RequestedOrientation = ScreenOrientation.Portrait; + } }