Refactor Import() overload to take a list of import tasks instead.

This commit is contained in:
Lucas A
2020-12-16 14:28:16 +01:00
parent b9a8d1e455
commit 5d7294451f
6 changed files with 13 additions and 15 deletions

View File

@ -11,6 +11,7 @@ using Android.OS;
using Android.Provider;
using Android.Views;
using osu.Framework.Android;
using osu.Game.Database;
namespace osu.Android
{
@ -82,7 +83,7 @@ namespace osu.Android
using (var stream = ContentResolver.OpenInputStream(uri))
await stream.CopyToAsync(copy);
await game.Import(copy, filename);
await game.Import(new ImportTask(copy, filename));
}, TaskCreationOptions.LongRunning);
}
}