Also do not restart the activity in osu.Framework.Tests.Android

This commit is contained in:
miterosan
2019-01-02 16:23:59 +01:00
parent d3e63c38fb
commit e9cb526c46

View File

@@ -4,12 +4,11 @@
using Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Support.V7.App;
using Android.Views;
namespace osu.Framework.Tests.Android
{
[Activity(Label = "@string/app_name", Theme = "@android:style/Theme.NoTitleBar", MainLauncher = true, ScreenOrientation = ScreenOrientation.Landscape)]
[Activity(Label = "@string/app_name", Theme = "@android:style/Theme.NoTitleBar", MainLauncher = true, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize)]
public class MainActivity : Activity
{
protected override void OnCreate(Bundle savedInstanceState)
@@ -18,6 +17,7 @@ namespace osu.Framework.Tests.Android
Window.AddFlags(WindowManagerFlags.Fullscreen);
Window.AddFlags(WindowManagerFlags.KeepScreenOn);
SetContentView(new TestGameView(this));
}
}