Forcer l'application dans le mode portrait (empêche la rotation)
continuous-integration/drone/push Build is failing Details

pull/63/head
Rémi LAVERGNE 2 years ago
parent 0e6ebdc6b5
commit 3292d93784

@ -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;
}
}

Loading…
Cancel
Save