Skip to content

Commit

Permalink
Don't store the host in AndroidGameActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
Susko3 committed Apr 30, 2024
1 parent 53affed commit 673fa11
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions osu.Framework.Android/AndroidGameActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using ManagedBass;
using Org.Libsdl.App;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Platform;
using Debug = System.Diagnostics.Debug;

namespace osu.Framework.Android
Expand All @@ -34,8 +33,6 @@ public abstract class AndroidGameActivity : SDLActivity

internal static AndroidGameSurface Surface => (AndroidGameSurface)MSurface!;

private GameHost? host;

protected abstract Game CreateGame();

protected override string[] GetLibraries() => new string[] { "SDL3" };
Expand All @@ -44,7 +41,7 @@ public abstract class AndroidGameActivity : SDLActivity

protected override IRunnable CreateSDLMainRunnable() => new Runnable(() =>
{
host = new AndroidGameHost(this);
var host = new AndroidGameHost(this);
host.AllowScreenSuspension.Result.BindValueChanged(allow =>
{
RunOnUiThread(() =>
Expand Down

0 comments on commit 673fa11

Please sign in to comment.