Override Import() instead.

This commit is contained in:
Lucas A
2020-12-08 19:46:55 +01:00
parent d8838ddbfb
commit aa7d22460d
4 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading.Tasks;
using Android.App;
using Android.Content;
using Android.Content.PM;
@ -57,7 +58,7 @@ namespace osu.Android
var stream = ContentResolver.OpenInputStream(uri);
if (stream != null)
game.ScheduleImport(stream, cursor.GetString(filename_column));
Task.Factory.StartNew(() => game.Import(stream, cursor.GetString(filename_column)), TaskCreationOptions.LongRunning);
}
}
}