Standardize Android activity and permissions

Relevant osu!-side permissions have been moved over.
Theme is changed to a pure black one, so we don't get the ugly gradient at startup.
Added some relevant config changes, so the activity doesn't unwantedly get restarted.
This commit is contained in:
Susko3
2021-12-24 02:21:40 +01:00
parent d308afbc2b
commit cadae0b8f9
4 changed files with 26 additions and 7 deletions

View File

@@ -2,13 +2,12 @@
// See the LICENCE file in the repository root for full licence text.
using Android.App;
using Android.Content.PM;
using osu.Framework;
using osu.Framework.Android;
namespace SampleGame.Android
{
[Activity(MainLauncher = true, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, Theme = "@android:style/Theme.NoTitleBar")]
[Activity(ConfigurationChanges = DEFAULT_CONFIG_CHANGES, LaunchMode = DEFAULT_LAUNCH_MODE, MainLauncher = true)]
public class SampleGameActivity : AndroidGameActivity
{
protected override Game CreateGame() => new SampleGameGame();