mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
Also do not restart the activity in osu.Framework.Tests.Android
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user