mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Fix code inspections.
This commit is contained in:
parent
825120fed3
commit
dd21de0cd5
@ -12,7 +12,6 @@ using osu.Framework.Android;
|
|||||||
|
|
||||||
namespace osu.Android
|
namespace osu.Android
|
||||||
{
|
{
|
||||||
|
|
||||||
[Activity(Theme = "@android:style/Theme.NoTitleBar", MainLauncher = true, ScreenOrientation = ScreenOrientation.FullUser, SupportsPictureInPicture = false, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize, HardwareAccelerated = false)]
|
[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/*")]
|
[IntentFilter(new[] { Intent.ActionDefault }, Categories = new[] { Intent.CategoryDefault }, DataScheme = "content", DataPathPatterns = new[] { ".*\\.osz", ".*\\.osk" }, DataMimeType = "application/*")]
|
||||||
public class OsuGameActivity : AndroidGameActivity
|
public class OsuGameActivity : AndroidGameActivity
|
||||||
@ -44,8 +43,9 @@ namespace osu.Android
|
|||||||
var stream = ContentResolver.OpenInputStream(intent.Data);
|
var stream = ContentResolver.OpenInputStream(intent.Data);
|
||||||
if (stream != null)
|
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
|
// 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);
|
base.OnNewIntent(intent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -251,8 +251,6 @@ namespace osu.Game.Database
|
|||||||
notification.State = ProgressNotificationState.Cancelled;
|
notification.State = ProgressNotificationState.Cancelled;
|
||||||
Logger.Error(e, $@"Could not import ({filename})", LoggingTarget.Database);
|
Logger.Error(e, $@"Could not import ({filename})", LoggingTarget.Database);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user