1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00
osu-lazer/osu.Android/MainActivity.cs

29 lines
931 B
C#
Raw Normal View History

2018-12-13 14:10:15 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using Android.App;
using Android.OS;
using Android.Runtime;
using Android.Widget;
using Android.Views;
2018-12-13 14:10:15 +08:00
using Android.Content.PM;
namespace osu.Android
{
[Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true, ScreenOrientation = ScreenOrientation.Landscape, SupportsPictureInPicture = false)]
public class MainActivity : Activity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.activity_main);
Window.AddFlags(WindowManagerFlags.KeepScreenOn);
2018-12-13 14:10:15 +08:00
}
public override void OnBackPressed()
{
}
}
}