1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 11:40:28 +08:00

Fix code inspections.

This commit is contained in:
Lucas A
2020-12-04 22:07:45 +01:00
Unverified
parent 825120fed3
commit dd21de0cd5
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -12,7 +12,6 @@ using osu.Framework.Android;
namespace osu.Android
{
[Activity(Theme = "@android:style/Theme.NoTitleBar", MainLauncher = true, ScreenOrientation = ScreenOrientation.FullUser, SupportsPictureInPicture = false, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, HardwareAccelerated = false)]
[IntentFilter(new[] { Intent.ActionDefault }, Categories = new[] { Intent.CategoryDefault }, DataScheme = "content", DataPathPatterns = new[] { ".*\\.osz", ".*\\.osk" }, DataMimeType = "application/*")]
public class OsuGameActivity : AndroidGameActivity
@@ -44,8 +43,9 @@ namespace osu.Android
var stream = ContentResolver.OpenInputStream(intent.Data);
if (stream != null)
// intent handler may run before the game has even loaded so we need to wait for the file importers to load before launching import
game.WaitForReady(() => game, _ => Task.Run(() => game.Import(stream, filename)));
game.WaitForReady(() => game, _ => Task.Run(() => game.Import(stream, filename)));
}
base.OnNewIntent(intent);
}
}
-2
View File
@@ -251,8 +251,6 @@ namespace osu.Game.Database
notification.State = ProgressNotificationState.Cancelled;
Logger.Error(e, $@"Could not import ({filename})", LoggingTarget.Database);
}
return;
}
/// <summary>